class Termkey
- Termkey
- Reference
- Object
Defined in:
termkey.crConstructors
-
.new(io : IO, flags : LibTermkey::Flags | Nil = nil)
you'll probably want to set STDIN to raw mode before calling this function
-
.new(terminal : String, flags : LibTermkey::Flags | Nil = nil)
Used when you're reading STDIN or another FD in crystal.
Instance Method Summary
Constructor Detail
def self.new(io : IO, flags : LibTermkey::Flags | Nil = nil)
#
you'll probably want to set STDIN to raw mode before calling this function
def self.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.