Add "usage" text to all TUI command help
[deliverable/binutils-gdb.git] / gdb / tui / tui-file.c
index 2f895b7a5348cae2d04f8e79231c3aefb1c16689..9337151e76a6aaf012b73994e54f66260a7b2185 100644 (file)
@@ -1,5 +1,5 @@
 /* UI_FILE - a generic STDIO like output stream.
-   Copyright (C) 1999-2017 Free Software Foundation, Inc.
+   Copyright (C) 1999-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -43,6 +43,16 @@ tui_file::puts (const char *linebuffer)
     tui_refresh_cmd_win ();
 }
 
+void
+tui_file::write (const char *buf, long length_buf)
+{
+  tui_write (buf, length_buf);
+  /* gdb_stdout is buffered, and the caller must gdb_flush it at
+     appropriate times.  Other streams are not so buffered.  */
+  if (this != gdb_stdout)
+    tui_refresh_cmd_win ();
+}
+
 void
 tui_file::flush ()
 {
This page took 0.024346 seconds and 4 git commands to generate.