enum Tput::Key

Defined in:

tput/keys.cr

Enum Members

CtrlA = 1
CtrlB = 2
CtrlC = 3
CtrlD = 4
CtrlE = 5
CtrlF = 6
CtrlG = 7
CtrlH = 8
Tab = 9
CtrlI = 9
CtrlJ = 10
CtrlK = 11
CtrlL = 12
Enter = 13
CtrlM = 13
CtrlN = 14
CtrlO = 15
CtrlP = 16
CtrlQ = 17
CtrlR = 18
CtrlS = 19
CtrlT = 20
CtrlU = 21
CtrlV = 22
CtrlW = 23
CtrlX = 24
CtrlY = 25
CtrlZ = 26
Escape = 27
Space = 32
Backspace = 127
AltEnter = 128
ShiftTab = 129
FixAutonumbering = 1000

Never used in code, just a hint for Crystal to not create collisions while assigning enum numbers to the following, unnumbered fields.

Home = 1001
End = 1002
PageUp = 1003
PageDown = 1004
Insert = 1005
Delete = 1006
Up = 1007
Down = 1008
Left = 1009
Right = 1010
ShiftUp = 1011
ShiftDown = 1012
ShiftLeft = 1013
ShiftRight = 1014
CtrlUp = 1015
CtrlDown = 1016
CtrlLeft = 1017
CtrlRight = 1018
AltUp = 1019
AltDown = 1020
AltLeft = 1021
AltRight = 1022
F1 = 1023
F2 = 1024
F3 = 1025
F4 = 1026
F5 = 1027
F6 = 1028
F7 = 1029
F8 = 1030
F9 = 1031
F10 = 1032
F11 = 1033
F12 = 1034
AltA = 1035
AltB = 1036
AltC = 1037
AltD = 1038
AltE = 1039
AltF = 1040
AltG = 1041
AltH = 1042
AltI = 1043
AltJ = 1044
AltK = 1045
AltL = 1046
AltM = 1047
AltN = 1048
AltO = 1049
AltP = 1050
AltQ = 1051
AltR = 1052
AltS = 1053
AltT = 1054
AltU = 1055
AltV = 1056
AltW = 1057
AltX = 1058
AltY = 1059
AltZ = 1060
Menu = 16777301
Unknown = 33554431

Class Method Summary

Instance Method Summary

Class Method Detail

def self.read_control(char : Char, &) : Key | Nil #

Reads a Control input from char. If an escape sequence was detected, calls the given block for the next Char?.


[View source]

Instance Method Detail

def alt_a? #

[View source]
def alt_b? #

[View source]
def alt_c? #

[View source]
def alt_d? #

[View source]
def alt_down? #

[View source]
def alt_e? #

[View source]
def alt_enter? #

[View source]
def alt_f? #

[View source]
def alt_g? #

[View source]
def alt_h? #

[View source]
def alt_i? #

[View source]
def alt_j? #

[View source]
def alt_k? #

[View source]
def alt_l? #

[View source]
def alt_left? #

[View source]
def alt_m? #

[View source]
def alt_n? #

[View source]
def alt_o? #

[View source]
def alt_p? #

[View source]
def alt_q? #

[View source]
def alt_r? #

[View source]
def alt_right? #

[View source]
def alt_s? #

[View source]
def alt_t? #

[View source]
def alt_u? #

[View source]
def alt_up? #

[View source]
def alt_v? #

[View source]
def alt_w? #

[View source]
def alt_x? #

[View source]
def alt_y? #

[View source]
def alt_z? #

[View source]
def backspace? #

[View source]
def ctrl_a? #

[View source]
def ctrl_b? #

[View source]
def ctrl_c? #

[View source]
def ctrl_d? #

[View source]
def ctrl_down? #

[View source]
def ctrl_e? #

[View source]
def ctrl_f? #

[View source]
def ctrl_g? #

[View source]
def ctrl_h? #

[View source]
def ctrl_i? #

[View source]
def ctrl_j? #

[View source]
def ctrl_k? #

[View source]
def ctrl_l? #

[View source]
def ctrl_left? #

[View source]
def ctrl_m? #

[View source]
def ctrl_n? #

[View source]
def ctrl_o? #

[View source]
def ctrl_p? #

[View source]
def ctrl_q? #

[View source]
def ctrl_r? #

[View source]
def ctrl_right? #

[View source]
def ctrl_s? #

[View source]
def ctrl_t? #

[View source]
def ctrl_u? #

[View source]
def ctrl_up? #

[View source]
def ctrl_v? #

[View source]
def ctrl_w? #

[View source]
def ctrl_x? #

[View source]
def ctrl_y? #

[View source]
def ctrl_z? #

[View source]
def delete? #

[View source]
def down? #

[View source]
def end? #

[View source]
def enter? #

[View source]
def escape? #

[View source]
def f10? #

[View source]
def f11? #

[View source]
def f12? #

[View source]
def f1? #

[View source]
def f2? #

[View source]
def f3? #

[View source]
def f4? #

[View source]
def f5? #

[View source]
def f6? #

[View source]
def f7? #

[View source]
def f8? #

[View source]
def f9? #

[View source]
def fix_autonumbering? #

[View source]
def home? #

[View source]
def insert? #

[View source]
def left? #

[View source]
def menu? #

[View source]
def page_down? #

[View source]
def page_up? #

[View source]
def right? #

[View source]
def shift_down? #

[View source]
def shift_left? #

[View source]
def shift_right? #

[View source]
def shift_tab? #

[View source]
def shift_up? #

[View source]
def space? #

[View source]
def tab? #

[View source]
def unknown? #

[View source]
def up? #

[View source]