mirror of https://github.com/xzeldon/htop.git
Fix bug 1538463.
This commit is contained in:
parent
b10821aae9
commit
cc5af25e11
1
CRT.c
1
CRT.c
|
@ -160,6 +160,7 @@ void CRT_done() {
|
||||||
int CRT_readKey() {
|
int CRT_readKey() {
|
||||||
nocbreak();
|
nocbreak();
|
||||||
cbreak();
|
cbreak();
|
||||||
|
nodelay(stdscr, FALSE);
|
||||||
int ret = getch();
|
int ret = getch();
|
||||||
halfdelay(CRT_delay);
|
halfdelay(CRT_delay);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
@ -165,4 +165,5 @@ void TraceScreen_run(TraceScreen* this) {
|
||||||
kill(child, SIGTERM);
|
kill(child, SIGTERM);
|
||||||
waitpid(child, NULL, 0);
|
waitpid(child, NULL, 0);
|
||||||
fclose(strace);
|
fclose(strace);
|
||||||
|
CRT_enableDelay();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue