diff --git a/exec/noyesbar.js b/exec/noyesbar.js index a6daf8c5a2e5c69719aa93ad755ce505cb46eafa..077058d0e408d37ee36595394652d9eb7238a449 100755 --- a/exec/noyesbar.js +++ b/exec/noyesbar.js @@ -1,4 +1,7 @@ // JS version of noyesbar.src +require("sbbsdefs.js", "P_NOABORT"); + +"use strict"; const yes_str = bbs.text(bbs.text.Yes); const yes_key = yes_str[0]; @@ -15,7 +18,7 @@ if(console.question.substring(0, 2) == "\x01\?") { console.question = console.question.substring(2); } -console.putmsg("\x01n\x01b\x01h[\x01c@CHECKMARK@\x01b] \x01y@QUESTION->@? @CLEAR_HOT@"); +console.putmsg("\x01n\x01b\x01h[\x01c@CHECKMARK@\x01b] \x01y@QUESTION->@? @CLEAR_HOT@", P_NOABORT); var affirm = false; while(bbs.online && !js.terminated) { var str; @@ -26,7 +29,7 @@ while(bbs.online && !js.terminated) { console.print(str); var key = console.getkey(0).toUpperCase(); console.backspace(console.strlen(str)); - console.print("\1n\1h\1>"); + console.print("\x01n\x01h\x01>"); if(console.aborted) { affirm = false; break; diff --git a/exec/yesnobar.js b/exec/yesnobar.js index 85a807dee846183c31c3d29d6e756668dc27effa..1acff35a3209a7bee9c6b732dbaa890d34cfbbc2 100755 --- a/exec/yesnobar.js +++ b/exec/yesnobar.js @@ -1,5 +1,9 @@ // JS version of yesnobar.src +require("sbbsdefs.js", "P_NOABORT"); + +"use strict"; + const yes_str = bbs.text(bbs.text.Yes); const yes_key = yes_str[0]; const no_str = bbs.text(bbs.text.No); @@ -15,7 +19,7 @@ if(console.question.substring(0, 2) == "\x01\?") { console.question = console.question.substring(2); } -console.putmsg("\x01n\x01b\x01h[\x01c@CHECKMARK@\x01b] \x01y@QUESTION->@? @CLEAR_HOT@"); +console.putmsg("\x01n\x01b\x01h[\x01c@CHECKMARK@\x01b] \x01y@QUESTION->@? @CLEAR_HOT@", P_NOABORT); var affirm = true; while(bbs.online && !js.terminated) { var str; @@ -26,7 +30,7 @@ while(bbs.online && !js.terminated) { console.print(str); var key = console.getkey(0).toUpperCase(); console.backspace(console.strlen(str)); - console.print("\1n\1h\1>"); + console.print("\x01n\x01h\x01>"); if(console.aborted) { affirm = false; break;