Parse G3 arrow keys.

This commit is contained in:
Qi Xiao 2016-02-14 18:31:36 +01:00
parent 4b3d18442a
commit 0afe57b179

View File

@ -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,