diff src/input.cc @ 6317:8c67f8be341d

[project @ 2007-02-16 08:10:53 by jwe]
author jwe
date Fri, 16 Feb 2007 08:10:54 +0000
parents 48f8af442b8a
children 268bfc8a2755
line wrap: on
line diff
--- a/src/input.cc	Fri Feb 16 07:23:49 2007 +0000
+++ b/src/input.cc	Fri Feb 16 08:10:54 2007 +0000
@@ -211,11 +211,13 @@
 }
 
 static inline std::string
-interactive_input (const std::string& s, bool force_readline = false)
+interactive_input (const std::string& s, bool debug = false,
+		   bool force_readline = false)
 {
   Vlast_prompt_time.stamp ();
 
-  if (Vdrawnow_requested && (interactive || forced_interactive))
+  if (! debug
+      && (Vdrawnow_requested && (interactive || forced_interactive)))
     {
       feval ("drawnow");
 
@@ -629,7 +631,7 @@
 
   octave_diary << prompt;
 
-  std::string input_buf = interactive_input (prompt.c_str (), true);
+  std::string input_buf = interactive_input (prompt.c_str (), debug, true);
 
   if (! input_buf.empty ())
     {