Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cursor = cursor{ MoveUp: func(n int) { fmt.Print(prefix, n, "A") }, MoveDown: func(n int) { fmt.Print(prefix, n, "B") }, MoveLeft: func(n int) { fmt.Print(prefix, n, "D") }, MoveRight: func(n int) { fmt.Print(prefix, n, "C") }, GoToLine: func(n int) { fmt.Print(prefix, n, ";0H") }, // contains filtered or unexported fields }
Functions that affect the cursor
Functions ¶
func Clear ¶
func Clear()
Removes all visible content from the terminal (equivalent to using the "clear" command)
func ClearLine ¶
func ClearLine()
Clears the cursor's current line in the terminal and places the cursor at the leftmost position in that line
func GetNextKey ¶
func GetNextKey() (res string)
Intercepts the user's next keypress and returns the string representation of the key
func ResetFormatting ¶
func ResetFormatting()
Ends any currently-set text formatting, including styles and colors
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.