mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-12 17:27:50 +08:00
Parse G3 arrow keys.
This commit is contained in:
parent
4b3d18442a
commit
0afe57b179
|
@ -292,6 +292,8 @@ func (rd *Reader) readOne(r rune) {
|
|||
// G3-style key sequences: \eO followed by exactly one character. For instance,
|
||||
// \eOP is F1.
|
||||
var g3Seq = map[rune]rune{
|
||||
'A': Up, 'B': Down, 'C': Right, 'D': Left,
|
||||
|
||||
// F1-F4: xterm, libvte and tmux
|
||||
'P': F1, 'Q': F2,
|
||||
'R': F3, 'S': F4,
|
||||
|
|
Loading…
Reference in New Issue
Block a user