mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 18:07:51 +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,
|
// G3-style key sequences: \eO followed by exactly one character. For instance,
|
||||||
// \eOP is F1.
|
// \eOP is F1.
|
||||||
var g3Seq = map[rune]rune{
|
var g3Seq = map[rune]rune{
|
||||||
|
'A': Up, 'B': Down, 'C': Right, 'D': Left,
|
||||||
|
|
||||||
// F1-F4: xterm, libvte and tmux
|
// F1-F4: xterm, libvte and tmux
|
||||||
'P': F1, 'Q': F2,
|
'P': F1, 'Q': F2,
|
||||||
'R': F3, 'S': F4,
|
'R': F3, 'S': F4,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user