Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
45f37698
Commit
45f37698
authored
May 11, 2017
by
Michael Klein
Browse files
make special keys also work with TERM=xterm-256color
parent
b1028e03
Changes
1
Hide whitespace changes
Inline
Side-by-side
CRT.c
View file @
45f37698
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment