From 0afe57b1795fe0481c156c66ea8859a19b1b9484 Mon Sep 17 00:00:00 2001 From: Qi Xiao Date: Sun, 14 Feb 2016 18:31:36 +0100 Subject: [PATCH] Parse G3 arrow keys. --- edit/reader.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/edit/reader.go b/edit/reader.go index 08bba8a8..224a89f2 100644 --- a/edit/reader.go +++ b/edit/reader.go @@ -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,