struct

CRT::Ansi::Key

Inherits Struct < Value < Object

Constructors

char(ch : Char | String, *, shift = false, alt = false, ctrl = false) : self
Source
ctrl(ch : Char) : self
Source
new(code : Code, char : String = "", *, shift : Bool = false, alt : Bool = false, ctrl : Bool = false)
Source

Instance methods

==(other : Key) : Bool
Source
alt?
Source
char
Source
char?
Source
code
Source
ctrl?
Source
shift?
Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source

Nested types