139 const static unsigned short int offset_y;
140 const static unsigned short int offset_x;
153 void goTo(
unsigned short int,
unsigned short int)
const;
ANSI escape code utilities and types for terminal formatting.
Coordinates struct header file.
Sista library namespace.
Definition ansi.cpp:31
int BEGINNING_OF_PREVIOUS_LINE
Definition __init__.pyi:48
int BEGINNING_OF_NEXT_LINE
Definition __init__.pyi:47
EraseScreen
Enumeration for screen erasure options in ANSI escape codes.
Definition cursor.hpp:63
@ FROM_CURSOR_TO_BEGINNING
MoveCursor
Enumeration for cursor movement directions in ANSI escape codes.
Definition cursor.hpp:90
MoveCursorSCO
Enumeration for SCO-specific cursor movement commands in ANSI escape codes.
Definition cursor.hpp:119
@ SCO_SAVE_CURSOR_POSITION
@ SCO_RESTORE_CURSOR_POSITION
void clearScreen(bool spaces)
Clears the terminal screen and optionally the scrollback buffer.
Definition cursor.cpp:27
EraseLine
Enumeration for line erasure options in ANSI escape codes.
Definition cursor.hpp:77
@ LINE_FROM_CURSOR_TO_BEGINNING
@ LINE_FROM_CURSOR_TO_END
MoveCursorDEC
Enumeration for DEC-specific cursor movement commands in ANSI escape codes.
Definition cursor.hpp:107
@ RESTORE_CURSOR_POSITION
Represents 2D coordinates with x and y values.
Definition coordinates.hpp:36
Class representing a terminal cursor for movement operations.
Definition cursor.hpp:137
void move(MoveCursor, unsigned short int) const
Moves the cursor in the specified direction by a given number of positions.
Definition cursor.cpp:59
Cursor()
Constructor that hides the cursor.
Definition cursor.cpp:35
void eraseLine(EraseLine, bool=true) const
Erases parts of the current line based on the specified EraseLine option.
Definition cursor.cpp:52
~Cursor()
Destructor that shows the cursor.
Definition cursor.cpp:38
void goTo(unsigned short int, unsigned short int) const
Moves the cursor to the specified (y, x) coordinates.
Definition cursor.cpp:42
void eraseScreen(EraseScreen) const
Erases parts of the screen based on the specified EraseScreen option.
Definition cursor.cpp:49