Skip to content
Snippets Groups Projects
Commit 0eb5b551 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Add backup Ctrl-C input checking, just incase console.aborted isn't working

Telnet BINARY_TX mode from the client disables CTRL-C input checking in all
versions of SBBS (before now). This change shouldn't be necessary now, but
it worked-around the BINARY_TX issue when I was having it (couldn't abort
mqtt spy).
parent 2fa8db2b
No related branches found
No related tags found
No related merge requests found
...@@ -107,10 +107,12 @@ while(!js.terminated) { ...@@ -107,10 +107,12 @@ while(!js.terminated) {
if(console.aborted || !bbs.online) if(console.aborted || !bbs.online)
break; break;
console.line_counter = 0; console.line_counter = 0;
while(bbs.online) { while(bbs.online && !console.aborted) {
var key = ascii(console.getbyte(10)); var key = ascii(console.getbyte(10));
if(!key) if(!key)
break; break;
if(key == CTRL_C)
console.aborted = true;
if(key == KEY_ESC) { if(key == KEY_ESC) {
key = ascii(console.getbyte(500)); key = ascii(console.getbyte(500));
if(!key) if(!key)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment