module Termbox
Defined in:
termbox.crtermbox/border.cr
termbox/cell.cr
termbox/constants.cr
termbox/container.cr
termbox/element.cr
termbox/line.cr
termbox/position.cr
termbox/version.cr
termbox/window.cr
Constant Summary
-
ATTR_BOLD =
256
-
Attributes
-
ATTR_REVERSE =
1024
-
ATTR_UNDERLINE =
512
-
CHAR_BLANK =
' '
-
COLOR_BLACK =
1
-
COLOR_BLUE =
5
-
COLOR_CYAN =
7
-
COLOR_DEFAULT =
0
-
COLOR_GREEN =
3
-
COLOR_MAGENTA =
6
-
COLOR_NIL =
-1
-
Colors
-
COLOR_RED =
2
-
COLOR_WHITE =
8
-
COLOR_YELLOW =
4
-
E_FAILED_TO_OPEN_TTY =
-2
-
E_PIPE_TRAP_ERROR =
-3
-
E_UNSUPPORTED_TERMINAL =
-1
-
Error codes
-
EOF =
-1
-
EVENT_KEY =
1
-
Event
-
EVENT_MOUSE =
3
-
EVENT_RESIZE =
2
-
HIDE_CURSOR =
-1
-
Misc
-
INPUT_ALT =
2
-
INPUT_CURRENT =
0
-
Input modes
-
INPUT_ESC =
1
-
INPUT_MOUSE =
4
-
KEY_ARROW_DOWN =
(65535 - 19)
-
KEY_ARROW_LEFT =
(65535 - 20)
-
KEY_ARROW_RIGHT =
(65535 - 21)
-
KEY_ARROW_UP =
(65535 - 18)
-
KEY_BACKSPACE =
8
-
KEY_BACKSPACE2 =
127
-
KEY_CTRL_2 =
0
-
KEY_CTRL_3 =
27
-
KEY_CTRL_4 =
28
-
KEY_CTRL_5 =
29
-
KEY_CTRL_6 =
30
-
KEY_CTRL_7 =
31
-
KEY_CTRL_8 =
523490
-
KEY_CTRL_A =
1
-
KEY_CTRL_B =
2
-
KEY_CTRL_BACKSLASH =
28
-
KEY_CTRL_C =
3
-
KEY_CTRL_D =
4
-
KEY_CTRL_E =
5
-
KEY_CTRL_F =
6
-
KEY_CTRL_G =
7
-
KEY_CTRL_H =
8
-
KEY_CTRL_I =
9
-
KEY_CTRL_J =
10
-
KEY_CTRL_K =
11
-
KEY_CTRL_L =
12
-
KEY_CTRL_LSQ_BRACKET =
27
-
KEY_CTRL_M =
13
-
KEY_CTRL_N =
14
-
KEY_CTRL_O =
15
-
KEY_CTRL_P =
16
-
KEY_CTRL_Q =
17
-
KEY_CTRL_R =
18
-
KEY_CTRL_RSQ_BRACKET =
29
-
KEY_CTRL_S =
19
-
KEY_CTRL_SLASH =
31
-
KEY_CTRL_T =
20
-
KEY_CTRL_TILDE =
0
-
Control keys
-
KEY_CTRL_U =
21
-
KEY_CTRL_UNDERSCORE =
31
-
KEY_CTRL_V =
22
-
KEY_CTRL_W =
23
-
KEY_CTRL_X =
24
-
KEY_CTRL_Y =
25
-
KEY_CTRL_Z =
26
-
KEY_DELETE =
(65535 - 13)
-
KEY_END =
(65535 - 15)
-
KEY_ENTER =
13
-
KEY_ESC =
27
-
KEY_F1 =
(65535 - 0)
-
Special Keys
-
KEY_F10 =
(65535 - 9)
-
KEY_F11 =
(65535 - 10)
-
KEY_F12 =
(65535 - 11)
-
KEY_F2 =
(65535 - 1)
-
KEY_F3 =
(65535 - 2)
-
KEY_F4 =
(65535 - 3)
-
KEY_F5 =
(65535 - 4)
-
KEY_F6 =
(65535 - 5)
-
KEY_F7 =
(65535 - 6)
-
KEY_F8 =
(65535 - 7)
-
KEY_F9 =
(65535 - 8)
-
KEY_HOME =
(65535 - 14)
-
KEY_INSERT =
(65535 - 12)
-
KEY_MOUSE_LEFT =
(65535 - 22)
-
KEY_MOUSE_MIDDLE =
(65535 - 24)
-
KEY_MOUSE_RELEASE =
(65535 - 25)
-
KEY_MOUSE_RIGHT =
(65535 - 23)
-
KEY_MOUSE_WHEEL_DOWN =
(65535 - 27)
-
KEY_MOUSE_WHEEL_UP =
(65535 - 26)
-
KEY_PGDN =
(65535 - 17)
-
KEY_PGUP =
(65535 - 16)
-
KEY_SPACE =
32
-
KEY_TAB =
9
-
MOD_ALT =
1
-
Modifiers
-
OUTPUT_216 =
3
-
OUTPUT_256 =
2
-
OUTPUT_CURRENT =
0
-
Output modes
-
OUTPUT_GRAYSCALE =
4
-
OUTPUT_NORMAL =
1
-
VERSION =
"0.1.0"