Documentation
¶
Index ¶
Constants ¶
View Source
const ( Esc = "\u001b[" TopLeft = Esc + "H" LeftMost = Esc + "1G" // stays on current line PosSave = Esc + "s" // saves the current cursor position PosRestore = Esc + "u" // restores cursor position to the last save EraseEOL = Esc + "K" // erase to end of current line EraseSOL = Esc + "1K" // erase to start of current line EraseLine = Esc + "2K" // erase from start to end of current line EraseDown = Esc + "J" // erase to end of current line, then everything down to bottom of screen EraseUp = Esc + "1J" // erase to start of current line, then everything up to top of screen EraseScreen = Esc + "2J" // erases everything to background colour, then moves cursor home )
View Source
const ( Reset = "0" Bold = "1" Underline = "4" Reverse = "7" UnderlineOff = "24" ReverseOff = "27" FgBlack = "30" FgDarkRed = "31" FgDarkGreen = "32" FgDarkYellow = "33" FgDarkBlue = "34" FgDarkMagenta = "35" FgDarkCyan = "36" FgLightGray = "37" FgReset = "39" // sets foreground color to default BgBlack = "40" BgDarkRed = "41" BgDarkGreen = "42" BgDarkYellow = "43" BgDarkBlue = "44" BgDarkMagenta = "45" BgDarkCyan = "46" BgLightGray = "47" BgReset = "49" // sets background color to default FgDarkGray = "90" FgRed = "91" FgGreen = "92" FgYellow = "93" FgBlue = "94" FgMagenta = "95" FgCyan = "96" FgWhite = "97" BgDarkGray = "100" BgRed = "101" BgGreen = "102" BgYellow = "103" BgBlue = "104" BgMagenta = "105" BgCyan = "106" BgWhite = "107" )
Variables ¶
This section is empty.
Functions ¶
func NextLine ¶
NextLine moves cursor to start of line n below current (stops at bottom of viewable area, does not cause a scroll)
func PrevLine ¶
PrevLine moves cursor to start of line n above current (stops at top of viewable area)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.