Commit f37e03f4 authored by rswindell's avatar rswindell
Browse files

Use console.inkey() correctly. If you only supply one argument, that value is

the mode, not the timeout. Here, "100" happens to be 0x64 which includes
K_SPIN which indicates it was called from getkey(K_SPIN) and since it wasn't,
it was removing the last character of the save-line buffer since this code also
does gratuitous save/restoreline() calls, resulting in partial ANSI escape
sequences being displayed at the command-line. This one too far too long to
find. :-(
parent 5576cea5
......@@ -59,7 +59,7 @@ InputFuncMainLoop:
CheckTime();
CheckTerminate();
key=console.inkey(100);
key=console.inkey(K_NONE, 100);
if(key == '') {
/* Busy loop checking */
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment