detect

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package detect identifies terminal graphics capabilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol

type Protocol int

Protocol is a terminal graphics protocol.

const (
	HalfBlock Protocol = iota // always works: Unicode ▀▄
	Sixel                     // DEC Sixel — xterm, mlterm, foot, WezTerm
	Kitty                     // Kitty graphics — kitty, WezTerm ≥0.29, Ghostty
)

func Best

func Best() Protocol

Best returns the best protocol the current terminal supports. It checks environment variables; it does NOT send ANSI queries (no TTY req).

func (Protocol) String

func (p Protocol) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL