]> code.citadel.org Git - citadel.git/commitdiff
Added pager config to tuiconfig.c
authorArt Cancro <ajc@citadel.org>
Thu, 4 Oct 2007 02:23:47 +0000 (02:23 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 4 Oct 2007 02:23:47 +0000 (02:23 +0000)
citadel/tuiconfig.c

index 6c84f1ed7032276d6e3fcef842e77fb1f49eefe7..458fc1bea37171753b5113d21a6fcce16b007354 100644 (file)
@@ -63,7 +63,7 @@ extern int screenwidth;
 void do_system_configuration(CtdlIPC *ipc)
 {
 
-#define NUM_CONFIGS 60
+#define NUM_CONFIGS 61
 
        char buf[256];
        char sc[NUM_CONFIGS][256];
@@ -300,6 +300,17 @@ void do_system_configuration(CtdlIPC *ipc)
                sc[56][0] = 0;
        }
 
+       /* External pager stuff */
+       int yes_pager = 0;
+       if (strlen(sc[60]) > 0) yes_pager = 1;
+       yes_pager = boolprompt("Configure an external pager command", yes_pager);
+       if (yes_pager) {
+               strprompt("Paging command", &sc[60][0], 255);
+       }
+       else {
+               sc[60][0] = 0;
+       }
+
        /* Master user account */
        int yes_muacct = 0;
        if (strlen(sc[58]) > 0) yes_muacct = 1;