Terminal width in columns.
Terminal height in rows.
Hide the terminal cursor.
Show the terminal cursor.
Enter raw mode, enable Kitty level 1 keyboard reporting, enable bracketed paste mode, enable mouse tracking, and hide the cursor.
The framework prefers Kitty semantics but its parser also accepts mixed tmux/legacy keyboard encodings that may still arrive on stdin.
Restore terminal state.
Write a string to the terminal output.
Minimal terminal interface.
Abstracts terminal I/O for both real usage (ProcessTerminal) and testing (MockTerminal).