]> andersk Git - moira.git/commitdiff
Changed so AIX uses -nomenu option by default, since the curses version
authorjweiss <jweiss>
Fri, 28 Oct 1994 16:58:33 +0000 (16:58 +0000)
committerjweiss <jweiss>
Fri, 28 Oct 1994 16:58:33 +0000 (16:58 +0000)
is breaking so badly.
Added -menu option (opposite of -nomenu) so people can force moira to use
curses.

clients/moira/main.c

index a528b6b5c5055880603826cabbcff195a62fa9c2..00e99844512d898f2b9c10ce1b6e03909099142c 100644 (file)
@@ -48,7 +48,11 @@ char *getlogin();
 uid_t getuid();
 struct passwd *getpwuid();
 
+#ifdef _AIX
+Bool use_menu = FALSE;         /* whether or not we are using a menu. */
+#else
 Bool use_menu = TRUE;          /* whether or not we are using a menu. */
+#endif
 
 /*     Function Name: main
  *     Description: The main driver for the Moira Client.
@@ -87,6 +91,8 @@ main(argc, argv)
        if (**arg == '-') {
            if (!strcmp(*arg, "-nomenu"))
              use_menu = FALSE;
+           else if (!strcmp(*arg, "-menu"))
+             use_menu = TRUE;
            else if (!strcmp(*arg, "-db"))
              if (arg - argv < argc - 1) {
                  ++arg;
@@ -200,7 +206,7 @@ char * buf;
 static void
 Usage()
 {
-    fprintf(stderr, "Usage: %s [-nomenu] [-db server[:port]]\n", program_name);
+    fprintf(stderr, "Usage: %s [-nomenu | -menu] [-db server[:port]]\n", program_name);
     exit(1);
 }
 
This page took 0.262624 seconds and 5 git commands to generate.