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
645057d8
Commit
645057d8
authored
May 19, 2016
by
Hisham
Browse files
Use set_escdelay() to avoid problems with ESCDELAY as a macro.
parent
6c1be632
Changes
2
Hide whitespace changes
Inline
Side-by-side
InfoScreen.c
View file @
645057d8
...
@@ -116,7 +116,7 @@ void InfoScreen_run(InfoScreen* this) {
...
@@ -116,7 +116,7 @@ void InfoScreen_run(InfoScreen* this) {
if
(
this
->
inc
->
active
)
if
(
this
->
inc
->
active
)
move
(
LINES
-
1
,
CRT_cursorX
);
move
(
LINES
-
1
,
CRT_cursorX
);
ESCDELAY
=
25
;
set_escdelay
(
25
)
;
int
ch
=
getch
();
int
ch
=
getch
();
if
(
ch
==
ERR
)
{
if
(
ch
==
ERR
)
{
...
...
ScreenManager.c
View file @
645057d8
...
@@ -189,7 +189,7 @@ void ScreenManager_run(ScreenManager* this, Panel** lastFocus, int* lastKey) {
...
@@ -189,7 +189,7 @@ void ScreenManager_run(ScreenManager* this, Panel** lastFocus, int* lastKey) {
}
}
int
prevCh
=
ch
;
int
prevCh
=
ch
;
ESCDELAY
=
25
;
set_escdelay
(
25
)
;
ch
=
getch
();
ch
=
getch
();
HandlerResult
result
=
IGNORED
;
HandlerResult
result
=
IGNORED
;
...
...
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