gilo/editor/keymap.go

30 lines
761 B
Go
Raw Normal View History

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
)
// ----------------------------------------------------------------------------
// !Map escape sequences to simpler constants
// ----------------------------------------------------------------------------
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"
)