From 079898d443244c06a6497ee544e7fcd5a29a42b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Mon, 3 Mar 2025 17:28:20 -0500 Subject: [PATCH] Differentiate between nothing and NUL Not sure why I need to... this may be some terminal-abstraction thing. --- exec/load/syncterm_cache.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exec/load/syncterm_cache.js b/exec/load/syncterm_cache.js index bdc03ea8d3..b89d29caf1 100644 --- a/exec/load/syncterm_cache.js +++ b/exec/load/syncterm_cache.js @@ -1,3 +1,5 @@ +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') { -- GitLab