mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-24 15:15:44 +00:00
Merge pull request #624 from mklein-de/xterm-256color
make special keys also work with TERM=xterm-256color
This commit is contained in:
commit
e03e45d819
2
CRT.c
2
CRT.c
@ -575,7 +575,7 @@ void CRT_init(int delay, int colorScheme) {
|
||||
CRT_scrollHAmount = 20;
|
||||
else
|
||||
CRT_scrollHAmount = 5;
|
||||
if (String_eq(CRT_termType, "xterm") || String_eq(CRT_termType, "xterm-color") || String_eq(CRT_termType, "vt220")) {
|
||||
if (String_startsWith(CRT_termType, "xterm") || String_eq(CRT_termType, "vt220")) {
|
||||
define_key("\033[H", KEY_HOME);
|
||||
define_key("\033[F", KEY_END);
|
||||
define_key("\033[7~", KEY_HOME);
|
||||
|
Loading…
Reference in New Issue
Block a user