Support linux console F1-F5

This commit is contained in:
Raphael 'kena' Poss 2022-08-25 19:43:05 +02:00 committed by Christian Muehlhaeuser
parent 127f76226e
commit 624343388b
1 changed files with 7 additions and 0 deletions

7
key.go
View File

@ -394,6 +394,13 @@ var sequences = map[string]Key{
"\x1b\x1b[7~": {Type: KeyHome, Alt: true}, // urxvt "\x1b\x1b[7~": {Type: KeyHome, Alt: true}, // urxvt
"\x1b\x1b[8~": {Type: KeyEnd, Alt: true}, // urxvt "\x1b\x1b[8~": {Type: KeyEnd, Alt: true}, // urxvt
// Function keys, Linux console
"\x1b[[A": {Type: KeyF1}, // linux console
"\x1b[[B": {Type: KeyF2}, // linux console
"\x1b[[C": {Type: KeyF3}, // linux console
"\x1b[[D": {Type: KeyF4}, // linux console
"\x1b[[E": {Type: KeyF5}, // linux console
// Function keys, X11 // Function keys, X11
"\x1bOP": {Type: KeyF1}, // vt100 "\x1bOP": {Type: KeyF1}, // vt100
"\x1bOQ": {Type: KeyF2}, // vt100 "\x1bOQ": {Type: KeyF2}, // vt100