Terminal modes management
Instance methods
disable_alternate_screen(io = STDOUT)
Disable alternate screen buffer
Sourcedisable_application_keypad(io = STDOUT)
Disable application keypad mode
Sourcedisable_bracketed_paste(io = STDOUT)
Disable bracketed paste mode
Sourcedisable_mouse_tracking(io = STDOUT)
Sourcedisable_raw_mode(io = STDOUT)
Disable raw mode (restore normal mode)
Sourceenable_alternate_screen(io = STDOUT)
Enable alternate screen buffer
Sourceenable_application_keypad(io = STDOUT)
Enable application keypad mode
Sourceenable_bracketed_paste(io = STDOUT)
Enable bracketed paste mode
Sourceenable_mouse_tracking(io = STDOUT, extended = false, sgr = true)
Sourceenable_raw_mode(io = STDOUT)
Enable raw mode (disable echo, canonical mode, etc.)
Sourcehide_cursor(io = STDOUT)
Sourcereset_all(io = STDOUT)
Reset all modes to defaults
Sourceshow_cursor(io = STDOUT)
Sourcewith_alternate_screen(io = STDOUT, &)
Execute block in alternate screen
Sourcewith_hidden_cursor(io = STDOUT, &)
Execute block with hidden cursor
Sourcewith_mouse_tracking(io = STDOUT, extended = false, sgr = true, &)
Execute block with mouse tracking
Sourcewith_raw_mode(io = STDOUT, &)
Save current terminal state and execute block
Source