From 19854020d51640b2f550b1f8ec3b3c9fcd84c9a8 Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Mon, 1 Jan 2024 22:52:53 -0500 Subject: [PATCH] Add support for more keys https://rqlite.slack.com/archives/C04BK1V78S2/p1703969054916549 https://github.com/ahedgehogtf/prompt/commit/bba2676e056e60e7299d15d107c0208a6b416d9e --- term.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/term.go b/term.go index f3cd9ee..b342828 100644 --- a/term.go +++ b/term.go @@ -317,6 +317,10 @@ func (term *Terminal) read(in *bufio.Reader) (int, rune, error) { if extEsc[0] == '~' { switch esc[1] { + case '1': + return evHome, char, err + case '4': + return evEnd, char, err case '2', '5', '6': // Insert, pgup, pgdown. return evSkip, char, err