summaryrefslogtreecommitdiff
path: root/src/tui
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2020-01-18 12:30:38 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2020-01-18 12:30:38 +0900
commit7771241cc0c91f8b53cb472671a82e57755d08c8 (patch)
treed4ee4c8e90e7c16eb2665b6833a959ed841b21f3 /src/tui
parent6e3af646b2e39c510a70c26f7a77c87e691e577c (diff)
downloadfzf-7771241cc0c91f8b53cb472671a82e57755d08c8.tar.gz
Fix F1, F2, F3, F4 on rxvt-unicode
Tested on urxvt. Fix #1799.
Diffstat (limited to 'src/tui')
-rw-r--r--src/tui/light.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/tui/light.go b/src/tui/light.go
index 5c4fadf7..c32a1baa 100644
--- a/src/tui/light.go
+++ b/src/tui/light.go
@@ -486,10 +486,18 @@ func (r *LightRenderer) escSequence(sz *int) Event {
switch r.buffer[3] {
case 126:
return Event{Home, 0, nil}
- case 53, 55, 56, 57:
+ case 49, 50, 51, 52, 53, 55, 56, 57:
if len(r.buffer) == 5 && r.buffer[4] == 126 {
*sz = 5
switch r.buffer[3] {
+ case 49:
+ return Event{F1, 0, nil}
+ case 50:
+ return Event{F2, 0, nil}
+ case 51:
+ return Event{F3, 0, nil}
+ case 52:
+ return Event{F4, 0, nil}
case 53:
return Event{F5, 0, nil}
case 55: