package
0.0.0-20240104140753-89b28be769de
Repository: https://github.com/halimath/terminal.git
Documentation: pkg.go.dev
# Functions
GetBackgroundColor retrieves the background color of the terminal and returns it as r,g,b values each representing a single color component in 16bit resolution.
GetCursorPosition queries the current cursor position from t and returns the x and y coordinates.
MoveCursorBackward formats a CSI to move the cursor backwards by n rows.
MoveCursorDown formats a CSI to move the cursor down by n rows.
MoveCursorForward formats a CSI to move the cursor forward by n rows.
MoveCursorUp formats a CSI to move the cursor up by n rows.
SetCursorPosition formats a CSI to position the cursor at (x,y).
SetWindowTitle creates a control sequence to set the window's title to title.
# Constants
Clear everything after the cursor.
Clear everything before the cursor.
Clear current line.
Clear whole screen.
Clear from cursor to newline.
Control Sequence Introducer (0x9b).
Change the cursor style to blinking bar.
Change the cursor style to blinking block.
Change the cursor style to blinking underline.
Hide cursor.
Restores a previously stored cursor.
Saves the current cursor.
Show cursor.
Change the cursor style to steady bar.
Change the cursor style to steady block.
Change the cursor style to steady underline.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Sequences to enable/disable application mode.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The Escape character.
Operating System Command (0x9d).
Reset all terminal attributes to their default.
String terminator sequence (0x9c)- used to terminate some sequences.
Switches to a new alternate screen buffer.
Switches to the main buffer.
# Variables
ErrInvalidTerminalResponse is a sentinel error value returned from queries issued to the terminal.