Fix home/end on vt100

This commit is contained in:
Raphael 'kena' Poss 2022-08-19 14:26:37 +02:00 committed by Christian Muehlhaeuser
parent 70576bc9e0
commit 2fe4aad5e6
1 changed files with 4 additions and 2 deletions

6
key.go
View File

@ -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},