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

Add example args for MsgAttr as well.

Nicer example than MsgSubj IMO.
parent bb89ab6c
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,9 @@ var details = { ...@@ -28,6 +28,9 @@ var details = {
'JoinWhichSub': { 'JoinWhichSub': {
'displaywith': 1, 'displaywith': 1,
}, },
'MsgAttr': {
'args': ['Private ', 'SPAM ', 'Read ', 'Deleted ', 'Kill ', 'Anonymous ', 'Locked ', 'Permanent ', 'Moderated ', 'Validated ', 'Replied ', 'NoReply ', 'Poll ', '(Closed) ', '', '', ''],
},
'MsgSubj': { 'MsgSubj': {
'args': ['Example message subject (up to 70 characters).........................'], 'args': ['Example message subject (up to 70 characters).........................'],
}, },
...@@ -235,9 +238,8 @@ function redraw(str, num) ...@@ -235,9 +238,8 @@ function redraw(str, num)
console.attributes = 7; console.attributes = 7;
console.print("Example text\r\nbefore message.\r\n"); console.print("Example text\r\nbefore message.\r\n");
console.question = "Example question"; console.question = "Example question";
// TODO: mnemonics() vs. putmsg() vs. print() // Stuff in a CTRL-C for things like @EXEC:yesnobar@
// different messages have different requirements. console.ungetkeys(ctrl('C'), true);
console.ungetkeys("\x03", true);
switch (displaywith) { switch (displaywith) {
case 0: case 0:
console.putmsg(formatted(a + 'Q' + str, num)); console.putmsg(formatted(a + 'Q' + str, num));
...@@ -252,6 +254,7 @@ function redraw(str, num) ...@@ -252,6 +254,7 @@ function redraw(str, num)
df = 'print() '; df = 'print() ';
break; break;
} }
// Pull out the CTRL-C
console.inkey(); console.inkey();
console.print("Example text after message.\r\n"); console.print("Example text after message.\r\n");
console.gotoxy(0,16); console.gotoxy(0,16);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment