Screen manages the display buffer and rendering for the TUI.
It handles drawing text, clearing regions, and managing the viewport.
Instance methods
clear
Clears the entire screen buffer
Sourcedraw_status_bar(text :
String, style :
String =
Terminal::REVERSE)
Draws a status bar at the bottom
SourceRenders the buffer to the terminal
Sourceupdate_dimensions
Updates screen dimensions
SourceWrites text at a specific position
SourceWrites a pre-rendered line (may contain ANSI codes) directly into the buffer.
SourceWrites text with a specific style (color).
Uses write_raw to avoid ANSI codes consuming character positions.
Source