struct

TermBuf::Tty::Mode

Inherits Struct < Value < Object

Stability: stable — changes only in a major release.

A terminal mode that can be turned on and off, and the sequences that do it.

The name is what identity means here, not the sequences: turning the same mode on twice must not send its set sequence twice. KITTY_KEYBOARD pushes onto a stack the terminal itself keeps, so a second push against the one pop that #leave sends would leave the keyboard changed after the program has gone.

The record and the mode constants below it are the stable part of Tty; the class around them is internal.

Constructors

new(name : String, set : String, reset : String)
Source

Instance methods

clone
Source
copy_with(name _name = @name, set _set = @set, reset _reset = @reset)
Source
name
reset
set