Moved the remaining help files for the text client out of the server and into the...
authorArt Cancro <ajc@citadel.org>
Sun, 16 Jul 2017 03:17:42 +0000 (23:17 -0400)
committerArt Cancro <ajc@citadel.org>
Sun, 16 Jul 2017 03:17:42 +0000 (23:17 -0400)
citadel/messages/entermsg [deleted file]
citadel/messages/help [deleted file]
citadel/messages/mainmenu [deleted file]
textclient/src/citadel.c
textclient/src/commands.c
textclient/src/include/help.h
textclient/src/messages.c

diff --git a/citadel/messages/entermsg b/citadel/messages/entermsg
deleted file mode 100644 (file)
index 09a3a90..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-Entering message.  Word wrap will give you soft linebreaks.  Pressing the
-'enter' key will give you a hard linebreak and an indent.  Press 'enter' twice
-when finished.
diff --git a/citadel/messages/help b/citadel/messages/help
deleted file mode 100644 (file)
index 4ccc16f..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-                          ^variantname Help Menu
-  
- ?         Help. (Typing a '?' will give you a menu almost anywhere)
- A         Abandon this room where you stopped reading, goto next room.
- C         Chat (multiuser chat, where available)
- D         Prints directory, if there is one in the current room.
- E         Enter a message.
- F         Read all messages in the room, forward.
- G         Goto next room which has UNREAD messages.
- H         Help. Same as '?'
- I         Reads the Information file for this room.
- K         List of Known rooms.
- L         Reads the last five messages in the room.
- N         Reads all new messages in the room.
- O         Reads all old messages, backwards.
- P         Page another user (send an instant message)
- R         Reads all messages in the room, in reverse order.
- S         Skips current room without making its messages old.
- T         Terminate (logout)
- U         Ungoto (returns to the last room you were in)
- W         Displays who is currently logged in.
- X         Toggle eXpert mode (menus and help blurbs on/off)
- Z         Zap (forget) room. (Removes the room from your list)
- + -       Goto next, previous room on current floor.
- > <       Goto next, previous floor.
- *         Enter any locally installed 'doors'.
-   
- In addition, there are dot commands. You hit the . (dot), then press the
-first letter of each word of the command. As you hit the letters, the words
-pop onto your screen. Exceptions: after you hit .Help or .Goto, the remainder
-of the command is a help file name or room name.
-    
-      *** USE  .<H>elp ?  or  .<H>elp SUMMARY  for additional help *** 
diff --git a/citadel/messages/mainmenu b/citadel/messages/mainmenu
deleted file mode 100644 (file)
index a4d43fe..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
- -----------------------------------------------------------------------
- Room cmds:    <K>nown rooms, <G>oto next room, <.G>oto a specific room,
-               <S>kip this room, <A>bandon this room, <Z>ap this room,
-               <U>ngoto (move back)
- Message cmds: <N>ew msgs, <F>orward read, <R>everse read, <O>ld msgs,
-               <L>ast five msgs, <E>nter a message
- General cmds: <?> help, <T>erminate, <C>hat, <W>ho is online
- Misc:         <X> toggle eXpert mode, <D>irectory
-
-  (Type .Help SUMMARY for extended commands, <X> to hide this menu)
- -----------------------------------------------------------------------
index 5e8cc6203e7f964d4bdff2d549a8d0f376e1f63e..70cddecef2f9ceef1f63a7f06d5546979a83e38a 100644 (file)
@@ -1736,7 +1736,7 @@ NEWUSR:   if (IsEmptyStr(rc_password)) {
                if (termn8 == 0)
                        switch (mcmd) {
                        case 1:
-                               formout(ipc, "help");
+                               display_help(ipc, "help");
                                break;
                        case 4:
                                entmsg(ipc, 0, ((userflags & US_EXTEDIT) ? 2 : 0), 0);
@@ -1908,8 +1908,9 @@ NEWUSR:   if (IsEmptyStr(rc_password)) {
                                break;
 
                        case 21:
-                               if (argbuf[0] == 0)
-                                       strcpy(aaa, "?");
+                               if (argbuf[0] == 0) {
+                                       strcpy(argbuf, "?");
+                               }
                                display_help(ipc, argbuf);
                                break;
 
index fc115d2fd8870f1baf5cec19de50091bceca047e..1af9e8f68caa22643e40b18051f6564041f43f55 100644 (file)
@@ -979,7 +979,20 @@ int getcmd(CtdlIPC *ipc, char *argbuf)
                        enable_color = 0;
        }
        /* if we're running in idiot mode, display a cute little menu */
-       IFNEXPERT formout(ipc, "mainmenu");
+
+       IFNEXPERT {
+               scr_printf("-----------------------------------------------------------------------\n");
+               scr_printf("Room cmds:    <K>nown rooms, <G>oto next room, <.G>oto a specific room,\n");
+               scr_printf("              <S>kip this room, <A>bandon this room, <Z>ap this room,\n");
+               scr_printf("              <U>ngoto (move back)\n");
+               scr_printf("Message cmds: <N>ew msgs, <F>orward read, <R>everse read, <O>ld msgs,\n");
+               scr_printf("              <L>ast five msgs, <E>nter a message\n");
+               scr_printf("General cmds: <?> help, <T>erminate, <C>hat, <W>ho is online\n");
+               scr_printf("Misc:         <X> toggle eXpert mode, <D>irectory\n");
+               scr_printf("\n");
+               scr_printf(" (Type .Help SUMMARY for extended commands, <X> to hide this menu)\n");
+               scr_printf("-----------------------------------------------------------------------\n");
+       }
 
        print_instant();
        strcpy(argbuf, "");
index b49c6426b41adcf268af0e31e5bb591def5cfefd..c373dc36220911028c967ff70c4dab4098268f85 100644 (file)
@@ -1,6 +1,6 @@
 //
 // Help files for the text client are now embedded directly into the client.
-// Copyright (c) 1988-2016 by Art Cancro and the citadel.org developers.
+// Copyright (c) 1988-2017 by Art Cancro and the citadel.org developers.
 // This program is gleefully made available to the world under the terms of
 // the GNU General Public License v3, with the following three modifications:
 // 1. The name of our favorite operating system is 'Linux,' not 'GNU/Linux.'
@@ -9,17 +9,53 @@
 //
 
 char *helpnames[] = {
+       "help",
        "admin",
        "floors",
        "intro",
        "mail",
        "network",
-       "policy",
        "software"
 };
 
 char *helptexts[] = {
 
+"                          Citadel Help Menu\n"
+"  \n"
+" ?         Help. (Typing a '?' will give you a menu almost anywhere)\n"
+" A         Abandon this room where you stopped reading, goto next room.\n"
+" C         Chat (multiuser chat, where available)\n"
+" D         Prints directory, if there is one in the current room.\n"
+" E         Enter a message.\n"
+" F         Read all messages in the room, forward.\n"
+" G         Goto next room which has UNREAD messages.\n"
+" H         Help. Same as '?'\n"
+" I         Reads the Information file for this room.\n"
+" K         List of Known rooms.\n"
+" L         Reads the last five messages in the room.\n"
+" N         Reads all new messages in the room.\n"
+" O         Reads all old messages, backwards.\n"
+" P         Page another user (send an instant message)\n"
+" R         Reads all messages in the room, in reverse order.\n"
+" S         Skips current room without making its messages old.\n"
+" T         Terminate (logout)\n"
+" U         Ungoto (returns to the last room you were in)\n"
+" W         Displays who is currently logged in.\n"
+" X         Toggle eXpert mode (menus and help blurbs on/off)\n"
+" Z         Zap (forget) room. (Removes the room from your list)\n"
+" + -       Goto next, previous room on current floor.\n"
+" > <       Goto next, previous floor.\n"
+" *         Enter any locally installed 'doors'.\n"
+"   \n"
+" In addition, there are dot commands. You hit the . (dot), then press the\n"
+"first letter of each word of the command. As you hit the letters, the words\n"
+"pop onto your screen. Exceptions: after you hit .Help or .Goto, the remainder\n"
+"of the command is a help file name or room name.\n"
+"    \n"
+"      *** USE  .<H>elp ?    for additional help *** \n"
+
+,
+
 "The following commands are available only to Admins.  A subset of these\n"
 "commands are available to room aides when they are currently in the room\n"
 "they are room aide for.\n"
@@ -262,10 +298,6 @@ char *helptexts[] = {
 
 ,
 
-" < this new user policy resides in ./messages/newuser > \n"
-
-,
-
 "   Citadel is the premier 'online community' (i.e. Bulletin Board System)\n"
 "software.  It runs on all POSIX-compliant systems, including Linux.  It is an\n"
 "advanced client/server application, and is being actively maintained.\n"
index c800b7f9049b0ae16e91aef845f1ff21dc3e9789..1337b029c968f4be1d7778c8a78b89a6fd587124 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Text client functions for reading and writing of messages
  *
- * Copyright (c) 1987-2016 by the citadel.org team
+ * Copyright (c) 1987-2017 by the citadel.org team
  *
  * This program is open source software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 3.
@@ -1211,7 +1211,9 @@ int entmsg(CtdlIPC *ipc,
 
        /* If the user is a dumbass, tell them how to type. */
        if ((userflags & US_EXPERT) == 0) {
-               formout(ipc, "entermsg");
+               scr_printf("Entering message.  Word wrap will give you soft linebreaks.  Pressing the\n");
+               scr_printf("'enter' key will give you a hard linebreak and an indent.  Press 'enter' twice\n");
+               scr_printf("when finished.\n");
        }
 
        /* Handle the selection of a recipient, if necessary. */