From 1180b2c86e7162bbe500802b3c16ea7ab26c6ab6 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 4 Feb 2010 17:37:59 +0000 Subject: Call tui_initialize_readline only if gdb_stdout is a tty. 2010-02-04 H.J. Lu PR tui/9622 * tui/tui-interp.c (tui_init): Call tui_initialize_readline only if gdb_stdout is a tty. --- gdb/tui/tui-interp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/tui') diff --git a/gdb/tui/tui-interp.c b/gdb/tui/tui-interp.c index 3b59769..3bb8246 100644 --- a/gdb/tui/tui-interp.c +++ b/gdb/tui/tui-interp.c @@ -57,7 +57,8 @@ tui_init (int top_level) tui_initialize_io (); tui_initialize_win (); - tui_initialize_readline (); + if (ui_file_isatty (gdb_stdout)) + tui_initialize_readline (); return NULL; } -- cgit v1.1