From 2fe4aad5e60ed5ea53ee1fbe546db429da748832 Mon Sep 17 00:00:00 2001 From: Raphael 'kena' Poss Date: Fri, 19 Aug 2022 14:26:37 +0200 Subject: [PATCH] Fix home/end on vt100 --- key.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/key.go b/key.go index 14dc10f..a6d2ce4 100644 --- a/key.go +++ b/key.go @@ -383,9 +383,11 @@ var sequences = map[string]Key{ "\x1b[3~": {Type: KeyDelete}, "\x1b[3;3~": {Type: KeyDelete, Alt: true}, "\x1b[1~": {Type: KeyHome}, - "\x1b[1;3H~": {Type: KeyHome, Alt: true}, + "\x1b[H": {Type: KeyHome}, + "\x1b[1;3H": {Type: KeyHome, Alt: true}, "\x1b[4~": {Type: KeyEnd}, - "\x1b[1;3F~": {Type: KeyEnd, Alt: true}, + "\x1b[F": {Type: KeyEnd}, + "\x1b[1;3F": {Type: KeyEnd, Alt: true}, "\x1b[5~": {Type: KeyPgUp}, "\x1b[5;3~": {Type: KeyPgUp, Alt: true}, "\x1b[6~": {Type: KeyPgDown},