enum Termbox::InputMode

Overview

Input modes (bitwise).

Defined in:

termbox2/mode.cr

Enum Members

Current = 0

Makes Termbox.get_input_mode return the current input mode.

Escape = 1

When escape (\x1b) is in the buffer and there's no match for an escape sequence, a key event for Key::Esc is returned.

Alt = 2

When escape (\x1b) is in the buffer and there's no match for an escape sequence, the next keyboard event is returned with a KeyMod::Alt modifier.

Mouse = 4

Can be applied via bitwise OR operation to either of the modes to receive EventType::Mouse events.

If none of the main two modes were set, but the mouse mode was, Escape mode is used.

Instance Method Summary

Instance Method Detail

def alt? #

[View source]
def current? #

[View source]
def escape? #

[View source]
def mouse? #

[View source]