From 4785986109ddcb51cbb292ebccc5c58b6ebf6a93 Mon Sep 17 00:00:00 2001 From: Elena Zannoni Date: Sat, 14 Sep 2002 23:32:00 +0000 Subject: [PATCH] 2002-09-14 Elena Zannoni From: Emmanuel Thome' * top.c (init_main): Set rl_terminal_name. --- gdb/ChangeLog | 5 +++++ gdb/top.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f8252f21ff2..88e306aba46 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-09-14 Elena Zannoni + + From: Emmanuel Thome' + * top.c (init_main): Set rl_terminal_name. + 2002-09-10 Andrew Cagney * infcmd.c (default_print_registers_info): Send all output to diff --git a/gdb/top.c b/gdb/top.c index a2cee530c20..60c1bf9c3e0 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -1957,6 +1957,7 @@ init_main (void) get_gdb_completer_word_break_characters (); rl_completer_quote_characters = get_gdb_completer_quote_characters (); rl_readline_name = "gdb"; + rl_terminal_name = getenv ("TERM"); /* The name for this defun comes from Bash, where it originated. 15 is Control-o, the same binding this function has in Bash. */ -- 2.47.3