|
kaycxx-term
C++ terminal library
|
Cursor control methods write ANSI/VT cursor sequences when terminal commands are enabled. Coordinates are one-based terminal coordinates: column 1, row 1 is the top-left cell.
Use move_to for absolute movement, move_by for relative movement, and move_to_column when only the column should change.
move_by(columns, rows) uses positive columns for right, negative columns for left, positive rows for down, and negative rows for up.
The cursor can be hidden while rendering and shown again afterwards.
set_cursor_style changes the shape and blinking behavior of the cursor when the terminal supports it.
Available cursor styles:
cursor_style::standard: Terminal-defined standard cursor style.cursor_style::blinking_block: Blinking block cursor.cursor_style::steady_block: Steady block cursor.cursor_style::blinking_underline: Blinking underline cursor.cursor_style::steady_underline: Steady underline cursor.cursor_style::blinking_bar: Blinking vertical bar cursor.cursor_style::steady_bar: Steady vertical bar cursor.save_cursor stores the current cursor position in the terminal, and restore_cursor moves back to it.