diff options
author | Tomáš Janoušek <tomi@nomi.cz> | 2023-11-12 13:06:38 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-12 22:06:38 +0900 |
commit | 11fb4233f74ad8ca068ad15f1ec09bd8ff2953ee (patch) | |
tree | d5526326d201df983e3c87f189ce14ec32f4d084 | |
parent | 84bb350b146c0cba6eab616c2e899441c6a43c77 (diff) |
Fix Home, End on rxvt-unicode (#3507)
-rw-r--r-- | src/tui/light.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tui/light.go b/src/tui/light.go index e5950cde..a7ff27b7 100644 --- a/src/tui/light.go +++ b/src/tui/light.go @@ -402,7 +402,7 @@ func (r *LightRenderer) escSequence(sz *int) Event { return Event{F3, 0, nil} case 'S': return Event{F4, 0, nil} - case '1', '2', '3', '4', '5', '6': + case '1', '2', '3', '4', '5', '6', '7', '8': if len(r.buffer) < 4 { return Event{Invalid, 0, nil} } @@ -453,6 +453,10 @@ func (r *LightRenderer) escSequence(sz *int) Event { return Event{PgUp, 0, nil} case '6': return Event{PgDn, 0, nil} + case '7': + return Event{Home, 0, nil} + case '8': + return Event{End, 0, nil} case '1': switch r.buffer[3] { case '~': |