Glimmer::TUI::Terminal
Terminal handles low-level terminal operations including raw mode,
cursor control, and screen management.
Constants
BLINK = "#{CSI}5m"
BOLD = "#{CSI}1m"
CLEAR_LINE = "#{CSI}2K"
CLEAR_SCREEN = "#{CSI}2J"
Screen control
CSI = "#{ESC}["
CURSOR_BACK = "#{CSI}D"
CURSOR_DOWN = "#{CSI}B"
CURSOR_FORWARD = "#{CSI}C"
CURSOR_HOME = "#{CSI}H"
Cursor movement
CURSOR_NEXT_LINE = "#{CSI}E"
CURSOR_PREV_LINE = "#{CSI}F"
CURSOR_UP = "#{CSI}A"
DIM = "#{CSI}2m"
ENTER_ALT_SCREEN = "#{ESC}[?1049h"
Alternate screen buffer
ESC = "\e"
ANSI escape codes
EXIT_ALT_SCREEN = "#{ESC}[?1049l"
HIDDEN = "#{CSI}8m"
HIDE_CURSOR = "#{CSI}?25l"
RESET = "#{CSI}0m"
Colors
RESTORE_CURSOR = "#{ESC}8"
REVERSE = "#{CSI}7m"
SAVE_CURSOR = "#{ESC}7"
SHOW_CURSOR = "#{CSI}?25h"
UNDERLINE = "#{CSI}4m"