134 const static unsigned short int offset_y;
135 const static unsigned short int offset_x;
148 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:25
EraseScreen
Enumeration for screen erasure options in ANSI escape codes.
Definition: cursor.hpp:58
@ FROM_CURSOR_TO_BEGINNING
MoveCursor
Enumeration for cursor movement directions in ANSI escape codes.
Definition: cursor.hpp:85
@ BEGINNING_OF_PREVIOUS_LINE
MoveCursorSCO
Enumeration for SCO-specific cursor movement commands in ANSI escape codes.
Definition: cursor.hpp:114
@ SCO_SAVE_CURSOR_POSITION
@ SCO_RESTORE_CURSOR_POSITION
void clearScreen(bool spaces)
Clears the terminal screen and optionally the scrollback buffer.
Definition: cursor.cpp:22
EraseLine
Enumeration for line erasure options in ANSI escape codes.
Definition: cursor.hpp:72
@ 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:102
@ RESTORE_CURSOR_POSITION
Represents 2D coordinates with x and y values.
Definition: coordinates.hpp:31
Manages terminal cursor operations.
Definition: cursor.hpp:132
void move(MoveCursor, unsigned short int) const
Moves the cursor in the specified direction by a given number of positions.
Definition: cursor.cpp:57
Cursor()
Constructor that hides the cursor and clears the screen.
Definition: cursor.cpp:30
void eraseLine(EraseLine, bool=true) const
Erases parts of the current line based on the specified EraseLine option.
Definition: cursor.cpp:50
~Cursor()
Destructor that shows the cursor and resets ANSI settings.
Definition: cursor.cpp:34
void goTo(unsigned short int, unsigned short int) const
Moves the cursor to the specified (y, x) coordinates.
Definition: cursor.cpp:40
void eraseScreen(EraseScreen) const
Erases parts of the screen based on the specified EraseScreen option.
Definition: cursor.cpp:47