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

Add support for ^A? sequence in question prompts

Ctrl-A? is a conditional new-line sequence (often used in prompts).

This was a feature in yesnobar/noyesbar.bin and missing in this new JS
port. Oops.
parent ef1d7630
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -10,6 +10,11 @@ while(console.question.substring(0, 2) == "\r\n") {
console.question = console.question.substring(2);
}
if(console.question.substring(0, 2) == "\x01\?") {
console.print(console.question.substring(0, 2));
console.question = console.question.substring(2);
}
console.putmsg("\x01n\x01b\x01h[\x01c@CHECKMARK@\x01b] \x01y@QUESTION->@? @CLEAR_HOT@");
var affirm = false;
while(bbs.online && !js.terminated) {
......
......@@ -10,6 +10,11 @@ while(console.question.substring(0, 2) == "\r\n") {
console.question = console.question.substring(2);
}
if(console.question.substring(0, 2) == "\x01\?") {
console.print(console.question.substring(0, 2));
console.question = console.question.substring(2);
}
console.putmsg("\x01n\x01b\x01h[\x01c@CHECKMARK@\x01b] \x01y@QUESTION->@? @CLEAR_HOT@");
var affirm = true;
while(bbs.online && !js.terminated) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment