Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearScreen ¶
func ClearScreen()
ClearScreen cleans the terminal and set cursor position to the top left corner.
func MoveCursor ¶
func MoveCursor(row, col int)
MoveCursor sets the cursor position to given row and col.
Please note that ANSI is 1-based and the top left corner is (1,1), but here we are assuming the user is using a zero based coordinate system where the top left corner is (0, 0)
func WithBackground ¶
WithBackground wraps the given 'text' with 'colour' background and reset escape sequences.
func WithBlueBackground ¶
WithBlueBackground wraps the given text with blue background and reset escape sequences.
Types ¶
Click to show internal directories.
Click to hide internal directories.