Skip to content
Snippets Groups Projects
Commit 9e801052 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

console.inkey() returns empty string on timeout by default

parent 437b1a13
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ SyncTERMCache.prototype.read_apc = function (timeout)
if (timeout === undefined)
timeout = 1000;
while((ch = console.inkey(timeout)) !== null) {
while((ch = console.inkey(timeout)) !== '') {
switch(state) {
case 0:
if (ch == '\x1b') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment