module

Tui::Terminal

Low-level terminal control

Constants

CALIBRATION_CHARS = ['缺', '漢', '⚠', '→', '★']

Test characters for width calibration

Instance methods

bell

Ring the bell

Source
clear

Clear screen

Source
consume_sigint
Source
cursor(x : Int32, y : Int32) : Nil

Move cursor to position

Source
height

Get terminal height

Source
init

Initialize terminal for TUI mode

Source
initialized?

Check if terminal is initialized

Source
raw

Run block in raw mode

Source
resize_channel

Channel that receives resize notifications from SIGWINCH

Source
set_title(title : String) : Nil

Set window title (if supported)

Source
shutdown

Restore terminal to original state

Source
size

Get terminal size

Source
width

Get terminal width

Source