2021-03-26 12:01:17 -04:00
|
|
|
package editor
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// !Terminal Input Escape Code Sequences
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
const(
|
|
|
|
KeyArrowUp = "A"
|
|
|
|
KeyArrowDown = "B"
|
|
|
|
KeyArrowRight = "C"
|
|
|
|
KeyArrowLeft = "D"
|
2021-03-30 14:42:59 -04:00
|
|
|
KeyPageUp = "5~"
|
|
|
|
KeyPageDown = "6~"
|
2021-03-26 12:01:17 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
2021-03-30 16:22:35 -04:00
|
|
|
// !Constants representing input keys
|
2021-03-26 12:01:17 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
const (
|
2021-03-30 15:45:13 -04:00
|
|
|
keyUp = "ARROW_UP"
|
|
|
|
keyDown = "ARROW_DOWN"
|
|
|
|
keyLeft = "ARROW_LEFT"
|
|
|
|
keyRight = "ARROW_RIGHT"
|
|
|
|
keyPageUp = "PAGE_UP"
|
|
|
|
keyPageDown = "PAGE_DOWN"
|
|
|
|
keyHome = "HOME"
|
|
|
|
keyEnd = "END"
|
|
|
|
keyDelete = "DELETE"
|
|
|
|
)
|