-
Notifications
You must be signed in to change notification settings - Fork 0
Cursor
Most of ttuy's internal widgets use these cursor functions. These functions just basically print out ANSI escape sequences that cause the terminal cursor to move around.
Go back up the number of lines that lineNext() has gone down. This is mainly used by Painter().
Move the cursor up lines number of lines.
Move the cursor down lines number of lines.
Move to the next line lines number of times.
Move to the previous line lines number of times.
A line feed moves to the next line once and scrolls up once.
Move cursor to row row and column col.
Move the cursor forward columns number of columns.
Move the cursor back columns number of columns.
Move the cursor to the start of the current line.
Hide the cursor. This will hide the cursor until it is shown again, so make sure to use CursorShow() before the end of your program or widget.
Show the cursor.
Clear the current line.
Clear the entire terminal display
Scroll the terminal up lines number of lines.
Scroll the terminal down lines number of lines.