module

CRT::Ncurses::Bindings

Instance methods

clear_key_bindings
Source
key_handlers
Source
key_remaps
Source
on_key(key : Int32, &handler : -> Int32 | Nil)
Source
on_key(key : Char, &handler : -> Int32 | Nil)
Source
remap_key(from_key : Int32, to_key : Int32)
Source
remap_key(from_key : Char, to_key : Int32)
Source
resolve_key(input : Int32) : Int32 | Nil

Returns the (possibly remapped) key to process, or nil if a handler consumed it. Handlers return nil to consume, or an Int32 key code to pass through (same key or different for dynamic remapping).

Source
unbind_key(key : Int32)
Source
unbind_key(key : Char)
Source