text client: status line now configurable
authorArt Cancro <ajc@uncensored.citadel.org>
Fri, 23 Mar 2012 17:07:41 +0000 (13:07 -0400)
committerArt Cancro <ajc@uncensored.citadel.org>
Fri, 23 Mar 2012 17:07:41 +0000 (13:07 -0400)
citadel/citadel.rc
citadel/textclient/commands.c
citadel/textclient/screen.c
citadel/textclient/tuiconfig.h

index b52515938f5370ee96dcb57845335e8b32391888..351f5b57c79cfbf92e572ea59821d00200e1dad6 100644 (file)
@@ -42,6 +42,10 @@ ansi_color=user
 #
 use_background=off
 
+# STATUS_LINE will keep an informative status line on the top of the screen,
+# but it doesn't work on all terminals (Mac OS is particularly bad at this).
+status_line=off
+
 # PROMPT_CONTROL should be set to on/off/user to control whether the <N>ext
 # and <S>top keys are active when displaying the paginator prompt.  If it
 # is set to "user" then it's a user-configurable option.
index 525e3ce62db1a25ad2997a22fc5e8996619e7bb9..732080658cf5b108794f6e0a4d781b97842549a2 100644 (file)
@@ -773,6 +773,10 @@ void load_command_set(void)
                        if (!strncasecmp(&buf[11], "user", 4))
                                rc_ansi_color = 3;      /* user config */
                }
+               if (!strncasecmp(buf, "status_line=", 12)) {
+                       if (!strncasecmp(&buf[12], "on", 2))
+                               enable_status_line = 1;
+               }
                if (!strncasecmp(buf, "use_background=", 15)) {
                        if (!strncasecmp(&buf[15], "on", 2))
                                rc_color_use_bg = 9;
index 829e6b7305ebb422bbb73569396a42412889ce2f..11d047c6cf45e79bb23ff0f780d6d24a17d98adf 100644 (file)
@@ -33,7 +33,7 @@
 #include "commands.h"
 #include "screen.h"
 
-int enable_status_line = 0;    /* FIXME the status line works, but not on Mac.  Make this configurable. */
+int enable_status_line = 0;
 char status_line[1024] = "     ";
 
 /* the default paginator prompt will be replaced by the server's prompt when we learn it */
index 1c5094fc3bdfbc6923d5b4573776b1d49e1fd204..fd19e355396527ef0917978876a6407c205da32a 100644 (file)
@@ -7,3 +7,4 @@ void do_rssclient_configuration(CtdlIPC *ipc);
 void do_system_configuration(CtdlIPC *ipc);
 
 extern char editor_path[PATH_MAX];
+extern int enable_status_line;