Tui::Screen
Constants
CLEAR = "\e[2J\e[H"
CTRL_C = '\u0003'
HIDE_CURSOR = "\e[?25l"
KEY_MAP = {'k' => :up, 'j' => :down, 'h' => :left, 'l' => :l, 'q' => :q, 'r' => :r, 'b' => :b, 'e' => :e, '/' => :slash}
SHOW_CURSOR = "\e[?25h"
TIOCGWINSZ = 21523_u64
Class methods
detect_winsize
SourceInstance methods
clear
Sourcehide_cursor
Sourceread_key
SourceReads a line of text for an inline prompt: printable characters are appended, backspace/DEL removes the last one, and any other key (Enter, arrows, letters, ...) submits the buffer. Esc/Ctrl-C is the only way to cancel. render is called after every change with the current buffer so the caller can redraw the prompt.
session
Sourceshow_cursor
Sourcesuspend
Source