From 406c1bef80be806ab79f5d48f9914cf0d7658174 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Mon, 3 Mar 2025 12:16:53 -0500 Subject: [PATCH] Add example args for MsgAttr as well. Nicer example than MsgSubj IMO. --- exec/textedit.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/exec/textedit.js b/exec/textedit.js index 5574112686..c3d21d9295 100644 --- a/exec/textedit.js +++ b/exec/textedit.js @@ -28,6 +28,9 @@ var details = { 'JoinWhichSub': { 'displaywith': 1, }, + 'MsgAttr': { + 'args': ['Private ', 'SPAM ', 'Read ', 'Deleted ', 'Kill ', 'Anonymous ', 'Locked ', 'Permanent ', 'Moderated ', 'Validated ', 'Replied ', 'NoReply ', 'Poll ', '(Closed) ', '', '', ''], + }, 'MsgSubj': { 'args': ['Example message subject (up to 70 characters).........................'], }, @@ -235,9 +238,8 @@ function redraw(str, num) console.attributes = 7; console.print("Example text\r\nbefore message.\r\n"); console.question = "Example question"; - // TODO: mnemonics() vs. putmsg() vs. print() - // different messages have different requirements. - console.ungetkeys("\x03", true); + // Stuff in a CTRL-C for things like @EXEC:yesnobar@ + console.ungetkeys(ctrl('C'), true); switch (displaywith) { case 0: console.putmsg(formatted(a + 'Q' + str, num)); @@ -252,6 +254,7 @@ function redraw(str, num) df = 'print() '; break; } + // Pull out the CTRL-C console.inkey(); console.print("Example text after message.\r\n"); console.gotoxy(0,16); -- GitLab