class Termkey

Defined in:

termkey.cr

Constructors

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


[View source]
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.


[View source]

Instance Method Detail

def <<(c : UInt8) #

[View source]
def finalize #

[View source]
def getkey #

[View source]
def getpos #

[View source]
def key : LibTermkey::Key #

[View source]
def strfkey #

[View source]
def waitkey #

[View source]