Terminfo represents a terminfo entry. Note that we use friendly names
in Go, but when we write out JSON, we use the same names as terminfo.
The name, aliases and smous, rmous fields do not come from terminfo directly.Aliases[]string // acsc // sgr0 // true if writing to last cell in line advances // blink // bold // clear // colors // cols // dim // smam // enacs // rmam // smacs // smcup // smkx // rmacs // rmcup // rmkx // civis // string to insert a character (ich1) // sitm // lines // kmousNamestring // pad // op // rev // setab // setbrgb // cup // setaf // setfgbg // setfgbgrgb // setfrgb // cnorm // smxx // true if the terminal supports direct color // smul // (XT) has XTerm extensions TColor returns a string corresponding to the given foreground and background
colors. Either fg or bg can be set to -1 to elide. TGoto returns a string suitable for addressing the cursor at the given
row and column. The origin 0, 0 is in the upper left corner of the screen. TParm takes a terminfo parameterized string, such as setaf or cup, and
evaluates the string, and returns the result with the parameter
applied. TPuts emits the string to the writer, but expands inline padding
indications (of the form $<[delay]> where [delay] is msec) to
a suitable time (unless the terminfo string indicates this isn't needed
by specifying npc - no padding). All Terminfo based strings should be
emitted using this function.
func LookupTerminfo(name string) (*Terminfo, error)
func github.com/pancsta/tcell-v2/terminfo/dynamic.LoadTerminfo(name string) (*Terminfo, string, error)
func github.com/pancsta/tcell-v2.LookupTerminfo(name string) (ti *Terminfo, e error)
func AddTerminfo(t *Terminfo)
func github.com/pancsta/tcell-v2.NewTerminfoScreenFromTtyTerminfo(tty tcell.Tty, ti *Terminfo) (s tcell.Screen, e error)
Package-Level Functions (total 3)
AddTerminfo can be called to register a new Terminfo entry.
LookupTerminfo attempts to find a definition for the named $TERM.
ErrTermNotFound indicates that a suitable terminal entry could
not be found. This can result from either not having TERM set,
or from the TERM failing to support certain minimal functionality,
in particular absolute cursor addressability (the cup capability)
is required. For example, legacy "adm3" lacks this capability,
whereas the slightly newer "adm3a" supports it. This failure
occurs most often with "dumb".
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.