2015-09-23 06:46:56 +03:00
|
|
|
package readline
|
|
|
|
|
|
|
|
const (
|
|
|
|
CharLineStart = 1
|
|
|
|
CharBackward = 2
|
|
|
|
CharInterrupt = 3
|
|
|
|
CharDelete = 4
|
|
|
|
CharLineEnd = 5
|
|
|
|
CharForward = 6
|
2015-09-25 17:56:00 +03:00
|
|
|
CharCancel = 7
|
2015-09-23 06:46:56 +03:00
|
|
|
CharCtrlH = 8
|
2015-09-25 07:59:36 +03:00
|
|
|
CharTab = 9
|
2015-09-23 06:46:56 +03:00
|
|
|
CharCtrlJ = 10
|
|
|
|
CharKill = 11
|
|
|
|
CharEnter = 13
|
|
|
|
CharNext = 14
|
|
|
|
CharPrev = 16
|
|
|
|
CharBckSearch = 18
|
|
|
|
CharFwdSearch = 19
|
2015-09-23 08:03:13 +03:00
|
|
|
CharTranspose = 20
|
2015-09-28 06:13:39 +03:00
|
|
|
CharCtrlU = 21
|
2015-09-23 06:46:56 +03:00
|
|
|
CharCtrlW = 23
|
|
|
|
CharEsc = 27
|
|
|
|
CharEscapeEx = 91
|
|
|
|
CharBackspace = 127
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
MetaPrev = -iota - 1
|
|
|
|
MetaNext
|
|
|
|
MetaDelete
|
|
|
|
MetaBackspace
|
2015-09-23 08:03:13 +03:00
|
|
|
MetaTranspose
|
2015-09-23 06:46:56 +03:00
|
|
|
)
|