* tui-out.c (tui_out_new): Clear start_of_line.
[deliverable/binutils-gdb.git] / gdb / tui / tuiIO.c
index fe389af28fe0e73f5a56977cbb87135867b8576a..c48565ceb1f959568b5a9354b3a97eb292ba95b3 100644 (file)
@@ -44,6 +44,7 @@
 #include "terminal.h"
 #include "target.h"
 #include "event-loop.h"
+#include "event-top.h"
 #include "command.h"
 #include "top.h"
 #include "readline/readline.h"
@@ -151,7 +152,7 @@ tui_puts (const char *string)
 /* Readline callback.
    Redisplay the command line with its prompt after readline has
    changed the edited text.  */
-static void
+void
 tui_redisplay_readline (void)
 {
   int prev_col;
@@ -164,7 +165,10 @@ tui_redisplay_readline (void)
   char *prompt;
   int start_line;
   
-  prompt = get_prompt ();
+  if (tui_current_key_mode == tui_single_key_mode)
+    prompt = "";
+  else
+    prompt = get_prompt ();
   
   c_pos = -1;
   c_line = -1;
This page took 0.023617 seconds and 4 git commands to generate.