From 91736bccc61b79142664af64eb58ee6279ef66cd Mon Sep 17 00:00:00 2001 From: Tomas Janousek Date: Wed, 8 Nov 2023 12:55:01 +0000 Subject: [PATCH] Fix Home, End on rxvt-unicode --- src/tui/light.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tui/light.go b/src/tui/light.go index dd1f9f3d570..e87c6e68f88 100644 --- a/src/tui/light.go +++ b/src/tui/light.go @@ -406,7 +406,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} } @@ -457,6 +457,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 '~':