Index: svn_load_dirs.pl.in
===================================================================
--- svn_load_dirs.pl.in	(revision 8358)
+++ svn_load_dirs.pl.in	(working copy)
@@ -218,8 +218,8 @@
         $load_tags{$load_dir} = $load_tag;
       }
 
-    exit 0 unless &get_yes_or_no("Please examine identified tags.  Are they " .
-                                 "acceptable? (Y/N) ");
+    exit 0 unless &get_answer("Please examine identified tags.  Are they " .
+                                 "acceptable? (Y/n) ", 'ny', 1);
     print "\n";
   }
 
@@ -421,8 +421,8 @@
         {
           print "  $dir\n";
         }
-      exit 0 unless &get_yes_or_no("You must add them now to load the " .
-                                   "directories.  Continue (Y/N)? ");
+      exit 0 unless &get_answers("You must add them now to load the " .
+                                   "directories.  Continue (y/N)? ", 'ny', 0);
 
       my $message = "Create directories to load project into.\n\n";
 
@@ -731,7 +731,7 @@
 
                     if (($i+1) % 22 == 0)
                       {
-                        unless (&get_yes_or_no("Continue printing (Y/N)? "))
+                        unless (&get_answer("Continue printing (Y/n)? ", 'ny', 1))
                           {
                             last;
                           }
@@ -1666,30 +1666,33 @@
   $ctx->digest;
 }
 
-# Read standard input until a line contains either an upper or
-# lowercase y or n.
-sub get_yes_or_no
+# Read standard input until a line contains the required input
+sub get_answer
 {
-  unless (@_ == 1)
-    {
-      croak "$0: get_yes_or_no $INCORRECT_NUMBER_OF_ARGS";
-    }
-
+  unless (@_ == 3)
+  {
+    croak "$0: get_answer $INCORRECT_NUMBER_OF_ARGS";
+  }
+    
   my $message = shift;
-
-  # Assume a positive answer if no user input is being accepted.
-  return 1 if $opt_no_user_input;
-
-  my $line;
+  my $answers = shift;
+  my $def_ans = shift;
+    
+  return $def_ans if $opt_no_user_input;
+    
+  my $char;
   do
-    {
-      print $message;
-      $line = <STDIN>;
-      $line = '' unless defined $line;
-    } until $line =~ /[yn]/i;
-  $line =~ /y/i;
+  {
+    print $message;
+    $char = substr(<STDIN>,0,1);
+    $char = "" if (!defined($char) or $char eq "\n");
+  } until $char eq "" or $answers =~ /$char/ig;
+    
+  return $def_ans if $char eq "";
+  return pos($answers)-1;
 }
 
+
 # Determine the native end of line on this system by writing a \n in
 # non-binary mode to an empty file and reading the same file back in
 # binary mode.


