class

Termkey

Inherits Reference < Object

Constructors

new(io : IO, flags : LibTermkey::Flags | Nil = nil)

you'll probably want to set STDIN to raw mode before calling this function

Source
new(terminal : String, flags : LibTermkey::Flags | Nil = nil)

Used when you're reading STDIN or another FD in crystal. Pass in ENV["TERM"] and use << to feed the key reader.

Source

Instance methods

<<(c : UInt8)
Source
finalize
Source
getkey
Source
getpos
Source
strfkey
Source
waitkey
Source