mirror of https://github.com/xzeldon/htop.git
Better support for Home and End keys
This commit is contained in:
parent
cb297af848
commit
af4c412ebf
2
CRT.c
2
CRT.c
|
@ -182,6 +182,8 @@ void CRT_init(int delay, int colorScheme) {
|
|||
if (String_eq(CRT_termType, "xterm") || String_eq(CRT_termType, "xterm-color") || String_eq(CRT_termType, "vt220")) {
|
||||
define_key("\033[H", KEY_HOME);
|
||||
define_key("\033[F", KEY_END);
|
||||
define_key("\033[7~", KEY_HOME);
|
||||
define_key("\033[8~", KEY_END);
|
||||
define_key("\033OP", KEY_F(1));
|
||||
define_key("\033OQ", KEY_F(2));
|
||||
define_key("\033OR", KEY_F(3));
|
||||
|
|
Loading…
Reference in New Issue