package terminfo

Import Path
	github.com/gdamore/tcell/v2/terminfo (on go.dev)

Dependency Relation
	imports 9 packages, and imported by 36 packages

Involved Source Files terminfo.go
Package-Level Type Names (only one)
/* sort by: | */
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 // bell // blink // bold // clear // colors // cols // Smulx with param 3 // cub1 CursorBlinkingBar string CursorBlinkingBlock string CursorBlinkingUnderline string // nothing uses it yet // Cs (but not really because Cs uses X11 color string) // Cr CursorDefault string CursorSteadyBar string CursorSteadyBlock string CursorSteadyUnderline string // cuu1 // Smulx with param 5 // dim // smam DisableFocusReporting string DisablePaste string // Smulx with param 4 // Smulx with param 2 // enacs // rmam EnableFocusReporting string // bracketed paste mode // smacs // smcup // smkx EnterUrl string // rmacs // rmcup // rmkx ExitUrl string // civis // string to insert a character (ich1) // sitm // alt-left KeyAltEnd string KeyAltHome string // alt-left // alt-right KeyAltShfDown string KeyAltShfEnd string KeyAltShfHome string KeyAltShfLeft string KeyAltShfRight string KeyAltShfUp string // alt-up // kbs // kcbt // kcan // kclr // ctrl-left KeyCtrlEnd string KeyCtrlHome string // ctrl-left // ctrl-right KeyCtrlShfDown string KeyCtrlShfEnd string KeyCtrlShfHome string KeyCtrlShfLeft string KeyCtrlShfRight string KeyCtrlShfUp string // ctrl-up // kdch1 // kcud1 // kend // kext // kf1 // kf10 // kf11 // kf12 // kf13 // kf14 // kf15 // kf16 // kf17 // kf18 // kf19 // kf2 // kf20 // kf21 // kf22 // kf23 // kf24 // kf25 // kf26 // kf27 // kf28 // kf29 // kf3 // kf30 // kf31 // kf32 // kf33 // kf34 // kf35 // kf36 // kf37 // kf38 // kf39 // kf4 // kf40 // kf41 // kf42 // kf43 // kf44 // kf45 // kf46 // kf47 // kf48 // kf49 // kf5 // kf50 // kf51 // kf52 // kf53 // kf54 // kf55 // kf56 // kf57 // kf58 // kf59 // kf6 // kf60 // kf61 // kf62 // kf63 // kf64 // kf7 // kf8 // kf9 // khlp // khome // kich1 // kcub1 // meta-left KeyMetaEnd string KeyMetaHome string // meta-left // meta-right KeyMetaShfDown string KeyMetaShfEnd string KeyMetaShfHome string KeyMetaShfLeft string KeyMetaShfRight string KeyMetaShfUp string // meta-up // knp // kpp // kprt // kcuf1 // kDC // shift-down // kEND // kHOM // kIC // kLFT // shift-knp // shift-kpp // kRIT // shift-up // kcuu1 // lines Modifiers int // kmous Name string // pad PasteEnd string PasteStart string // op // rev // setab // setbrgb // cup // setaf // setfgbg // setfgbgrgb // setfrgb SetWindowSize string // no terminfo extension // cnorm // smxx // true if the terminal supports direct color // smul // Setuc1 // Setulc // ol // (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/gdamore/tcell/v2/terminfo/dynamic.LoadTerminfo(name string) (*Terminfo, string, error) func github.com/gdamore/tcell/v2.LookupTerminfo(name string) (ti *Terminfo, e error) func AddTerminfo(t *Terminfo) func github.com/gdamore/tcell/v2.NewTerminfoScreenFromTtyTerminfo(tty tcell.Tty, ti *Terminfo) (s tcell.Screen, e error)
Package-Level Functions (total 2)
AddTerminfo can be called to register a new Terminfo entry.
LookupTerminfo attempts to find a definition for the named $TERM.
Package-Level Variables (only one)
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".
Package-Level Constants (total 2)
const ModifiersNone = 0
const ModifiersXTerm = 1