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

Differentiate between nothing and NUL

Not sure why I need to... this may be some terminal-abstraction
thing.
parent 874d2379
No related branches found
No related tags found
No related merge requests found
require("sbbsdefs.js", "K_NUL");
function SyncTERMCache() { function SyncTERMCache() {
this.supported = this.supports_syncterm_cache(); this.supported = this.supports_syncterm_cache();
}; };
...@@ -14,7 +16,7 @@ SyncTERMCache.prototype.read_apc = function (timeout) ...@@ -14,7 +16,7 @@ SyncTERMCache.prototype.read_apc = function (timeout)
if (timeout === undefined) if (timeout === undefined)
timeout = 1000; timeout = 1000;
while((ch = console.inkey(timeout)) !== '') { while((ch = console.inkey(K_NUL, timeout)) !== null) {
switch(state) { switch(state) {
case 0: case 0:
if (ch == '\x1b') { if (ch == '\x1b') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment