is breaking so badly.
Added -menu option (opposite of -nomenu) so people can force moira to use
curses.
uid_t getuid();
struct passwd *getpwuid();
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. */
Bool use_menu = TRUE; /* whether or not we are using a menu. */
/* Function Name: main
* Description: The main driver for the Moira Client.
/* Function Name: main
* Description: The main driver for the Moira Client.
if (**arg == '-') {
if (!strcmp(*arg, "-nomenu"))
use_menu = FALSE;
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;
else if (!strcmp(*arg, "-db"))
if (arg - argv < argc - 1) {
++arg;
- fprintf(stderr, "Usage: %s [-nomenu] [-db server[:port]]\n", program_name);
+ fprintf(stderr, "Usage: %s [-nomenu | -menu] [-db server[:port]]\n", program_name);