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
af4c412e
"vscode:/vscode.git/clone" did not exist on "779cfa8e5d441cf4340c6ad8183ee4938e61fa86"
Commit
af4c412e
authored
Apr 09, 2014
by
Hisham Muhammad
Browse files
Better support for Home and End keys
parent
cb297af8
Changes
1
Show whitespace changes
Inline
Side-by-side
CRT.c
View file @
af4c412e
...
@@ -182,6 +182,8 @@ void CRT_init(int delay, int colorScheme) {
...
@@ -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"
))
{
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
[H"
,
KEY_HOME
);
define_key
(
"
\033
[F"
,
KEY_END
);
define_key
(
"
\033
[F"
,
KEY_END
);
define_key
(
"
\033
[7~"
,
KEY_HOME
);
define_key
(
"
\033
[8~"
,
KEY_END
);
define_key
(
"
\033
OP"
,
KEY_F
(
1
));
define_key
(
"
\033
OP"
,
KEY_F
(
1
));
define_key
(
"
\033
OQ"
,
KEY_F
(
2
));
define_key
(
"
\033
OQ"
,
KEY_F
(
2
));
define_key
(
"
\033
OR"
,
KEY_F
(
3
));
define_key
(
"
\033
OR"
,
KEY_F
(
3
));
...
...
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