Documentation ¶
Overview ¶
Package commands implement common output commands for the termianl
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands = map[string]Command{
"SMCUP": "\x1b[?1049h\x1b[22;0;0t",
"RMCUP": "\x1b[?1049l\x1b[23;0;0t",
"HIDECURSOR": "\x1b[?25l",
"SHOWCURSOR": "\x1b[?25h",
"SOFTRESET": "\x1b[>!p",
"ENABLEMOUSE": "\x1b[?1000;1006;1015h",
"DISABLEMOUSE": "\x1b[?1000;1006;1015l",
"CLEAR": "\x1b\x0c",
"CURSORUP": "\x1bA",
"CURSORDOWN": "\x1bB",
"CURSORRIGHT": "\x1bC",
"CURSORLEFT": "\x1bD",
"CURSORHOME": "\x1bH",
"ERASEBELOW": "\x1b[0J",
"ERASEABOVE": "\x1b[1J",
"ERASEALL": "\x1b[2J",
"GETWINDOWSIZE": "\x1b[18t",
"CURSORUPN": "\x1b[%dA",
"GOTO": "\x1b[%d;%dH",
"ENABLEPASTE": "\x1b[?2004h",
"DISABLEPASTE": "\x1b[?2004l",
"CHARSTYLE": "\x1b[%sm",
"BGCOLOR": "\x1b[48;2;%d;%d;%dm",
"FGCOLOR": "\x1b[38;2;%d;%d;%dm",
}
Commands is the list of fixed commands
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.