Added -m option to suppress MORE prompts.
authorDavid Griffith <dave@661.org>
Thu, 6 Mar 2014 06:08:15 +0000 (22:08 -0800)
committerDavid Griffith <dave@661.org>
Thu, 6 Mar 2014 06:08:15 +0000 (22:08 -0800)
src/dumb/dumb_frotz.h
src/dumb/dumb_init.c
src/dumb/dumb_input.c

index 5cafe9475f96b4a0b95cc56583be342ea72601e6..f28d6e46b2f4fbe5ea42f01954e85eda4577f604 100644 (file)
@@ -17,6 +17,8 @@
 /* from ../common/setup.h */
 extern f_setup_t f_setup;
 
+bool do_more_prompts;
+
 /* From input.c.  */
 bool is_terminator (zchar);
 
index 63005df8644d0d29ff560e8d178739effc204993..ec900dd1bba49f7524eb9b1d33ec705b71ab9282 100644 (file)
@@ -73,15 +73,17 @@ void os_process_arguments(int argc, char *argv[])
 {
     int c;
 
+    do_more_prompts = TRUE;
     /* Parse the options */
     do {
-       c = zgetopt(argc, argv, "aAh:iI:oOpPQs:R:S:tu:w:xZ:");
+       c = zgetopt(argc, argv, "aAh:iI:moOpPQs:R:S:tu:w:xZ:");
        switch(c) {
          case 'a': f_setup.attribute_assignment = 1; break;
          case 'A': f_setup.attribute_testing = 1; break;
        case 'h': user_screen_height = atoi(zoptarg); break;
          case 'i': f_setup.ignore_errors = 1; break;
          case 'I': f_setup.interpreter_number = atoi(zoptarg); break;
+         case 'm': do_more_prompts = FALSE;
          case 'o': f_setup.object_movement = 1; break;
          case 'O': f_setup.object_locating = 1; break;
          case 'P': f_setup.piracy = 1; break;
index 0d657b58cfe8206ad0657520708a64e8627ff3c9..2593bcfd9bd064d7b93e8fb492688c7b42dabe47 100644 (file)
@@ -54,7 +54,6 @@ static char runtime_usage[] =
 ;
 
 static float speed = 1;
-static bool do_more_prompts = TRUE;
 
 enum input_type {
     INPUT_CHAR,