-
Notifications
You must be signed in to change notification settings - Fork 0
/
special.go
executable file
·42 lines (39 loc) · 922 Bytes
/
special.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package termios
// special.go defines our own constants for special keys.
const (
// SpecialBackspace is the key that deletes the character to the left of the cursor.
SpecialBackspace = iota
// SpecialDelete is the key that deletes the character to the right of the cursor.
SpecialDelete
// SpecialEnter is the enter / new-line key.
SpecialEnter
SpecialArrowLeft
SpecialArrowRight
SpecialArrowUp
SpecialArrowDown
SpecialHome
SpecialEnd
SpecialPgUp
SpecialPgDown
SpecialIns
SpecialF1
SpecialF2
SpecialF3
SpecialF4
SpecialF5
SpecialF6
SpecialF7
SpecialF8
SpecialF9
SpecialF10
SpecialF11
SpecialF12
SpecialTab
SpecialEscape
)
var specialNames = []string{
"backspace", "delete", "enter", "cursor left", "cursor right", "cursor up", "cursor down",
"home", "end", "page up", "page down", "insert",
"f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12",
"tab", "escape",
}