Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LINUX_KEY_MAP = map[tcell.Key]string{ tcell.KeyEnter: "\r", tcell.KeyBackspace: "\x7f", tcell.KeyBackspace2: "\x7f", tcell.KeyTab: "\t", tcell.KeyEscape: "\x1b", tcell.KeyDown: "\x1b[B", tcell.KeyUp: "\x1b[A", tcell.KeyRight: "\x1b[C", tcell.KeyLeft: "\x1b[D", tcell.KeyHome: "\x1b[1~", tcell.KeyEnd: "\x1b[4~", tcell.KeyPgUp: "\x1b[5~", tcell.KeyPgDn: "\x1b[6~", tcell.KeyDelete: "\x1b[3~", tcell.KeyInsert: "\x1b[2~", tcell.KeyF1: "\x1bOP", tcell.KeyF2: "\x1bOQ", tcell.KeyF3: "\x1bOR", tcell.KeyF4: "\x1bOS", tcell.KeyF5: "\x1b[15~", tcell.KeyF6: "\x1b[17~", tcell.KeyF7: "\x1b[18~", tcell.KeyF8: "\x1b[19~", tcell.KeyF9: "\x1b[20~", tcell.KeyF10: "\x1b[21~", tcell.KeyF12: "\x1b[24~", } LINUX_CTRL_KEY_MAP = map[tcell.Key]string{ tcell.KeyUp: "\x1b[1;5A", tcell.KeyDown: "\x1b[1;5B", tcell.KeyRight: "\x1b[1;5C", tcell.KeyLeft: "\x1b[1;5D", } LINUX_CTRL_RUNE_MAP = map[rune]string{ '@': "\x00", '`': "\x00", '[': "\x1b", '{': "\x1b", '\\': "\x1c", '|': "\x1c", ']': "\x1d", '}': "\x1d", '^': "\x1e", '~': "\x1e", '_': "\x1f", '?': "\x7f", } LINUX_ALT_KEY_MAP = map[tcell.Key]string{ tcell.KeyUp: "\x1b[1;3A", tcell.KeyDown: "\x1b[1;3B", tcell.KeyRight: "\x1b[1;3C", tcell.KeyLeft: "\x1b[1;3D", } )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Terminal)
func WithWindowManipulator ¶
func WithWindowManipulator(wm termutil.WindowManipulator) Option
Click to show internal directories.
Click to hide internal directories.