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
Branches
Tags
No related merge requests found
require("sbbsdefs.js", "K_NUL");
function SyncTERMCache() {
this.supported = this.supports_syncterm_cache();
};
......@@ -14,7 +16,7 @@ SyncTERMCache.prototype.read_apc = function (timeout)
if (timeout === undefined)
timeout = 1000;
while((ch = console.inkey(timeout)) !== '') {
while((ch = console.inkey(K_NUL, timeout)) !== null) {
switch(state) {
case 0:
if (ch == '\x1b') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment