Skip to content
Snippets Groups Projects
Commit 874d2379 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Ah, here's the point the P_NOATCODES can be removed.

That was quick!
parent c7fda9ff
No related branches found
No related tags found
No related merge requests found
require("sbbsdefs.js", "P_NOATCODES");
require("key_defs.js", "KEY_UP"); require("key_defs.js", "KEY_UP");
const a = "\x01"; const a = "\x01";
...@@ -273,7 +272,7 @@ function runmsg() ...@@ -273,7 +272,7 @@ function runmsg()
console.cleartoeol(); console.cleartoeol();
} }
console.gotoxy(0, 0); console.gotoxy(0, 0);
console.print("Example text\r\nbefore message.\r\n", P_NOATCODES); console.print("Example text\r\nbefore message.\r\n");
console.question = "Example question"; console.question = "Example question";
var fmtd = formatted(a + 'Q' + msgstr, msg); var fmtd = formatted(a + 'Q' + msgstr, msg);
switch (displaywith) { switch (displaywith) {
...@@ -286,11 +285,11 @@ function runmsg() ...@@ -286,11 +285,11 @@ function runmsg()
df = 'mnemonics()'; df = 'mnemonics()';
break; break;
case 2: case 2:
console.print(fmtd, P_NOATCODES); console.print(fmtd);
df = 'print() '; df = 'print() ';
break; break;
} }
console.print("Example text after message.\r\n", P_NOATCODES); console.print("Example text after message.\r\n");
} }
// TODO: Message 765 is too big // TODO: Message 765 is too big
...@@ -300,7 +299,7 @@ function redraw(str, num) ...@@ -300,7 +299,7 @@ function redraw(str, num)
console.clear(); console.clear();
console.gotoxy(0,0); console.gotoxy(0,0);
console.attributes = 7; console.attributes = 7;
console.print("Example text\r\nbefore message.\r\n", P_NOATCODES); console.print("Example text\r\nbefore message.\r\n");
console.question = "Example question"; console.question = "Example question";
// Stuff in a CTRL-C for things like @EXEC:yesnobar@ // Stuff in a CTRL-C for things like @EXEC:yesnobar@
console.ungetkeys(ctrl('C'), true); console.ungetkeys(ctrl('C'), true);
...@@ -315,27 +314,27 @@ function redraw(str, num) ...@@ -315,27 +314,27 @@ function redraw(str, num)
df = 'mnemonics()'; df = 'mnemonics()';
break; break;
case 2: case 2:
console.print(fmtd, P_NOATCODES); console.print(fmtd);
df = 'print() '; df = 'print() ';
break; break;
} }
// Pull out the CTRL-C // Pull out the CTRL-C
console.inkey(); console.inkey();
console.print("Example text after message.\r\n", P_NOATCODES); console.print("Example text after message.\r\n");
if (console.screen_columns < 80) { if (console.screen_columns < 80) {
console.gotoxy(0, inprow - 2); console.gotoxy(0, inprow - 2);
console.print(a + "h" + a + "w" + a + "4" + " " + df + " ^^ As seen on BBS ^^" + a + ">", P_NOATCODES); console.print(a + "h" + a + "w" + a + "4" + " " + df + " ^^ As seen on BBS ^^" + a + ">");
console.gotoxy(0, inprow - 1); console.gotoxy(0, inprow - 1);
console.print(a + "h" + a + "w" + a + "4" + " vv " + tnames[num] + " (" + num + ") vv" + a + ">", P_NOATCODES); console.print(a + "h" + a + "w" + a + "4" + " vv " + tnames[num] + " (" + num + ") vv" + a + ">");
console.gotoxy(0, inprow); console.gotoxy(0, inprow);
} }
else { else {
console.gotoxy(0, inprow - 1); console.gotoxy(0, inprow - 1);
console.print(a + "h" + a + "w" + a + "4" + " " + df + " ^^ As seen on BBS ^^" + " vv " + tnames[num] + " (" + num + ") vv" + a + ">", P_NOATCODES); console.print(a + "h" + a + "w" + a + "4" + " " + df + " ^^ As seen on BBS ^^" + " vv " + tnames[num] + " (" + num + ") vv" + a + ">");
console.gotoxy(0, inprow); console.gotoxy(0, inprow);
} }
console.cleartoeos(7); console.cleartoeos(7);
console.print(format_entry(msgstr), P_NOATCODES); console.print(format_entry(msgstr));
place_cursor(); place_cursor();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment