2002-09-09 Elena Zannoni <ezannoni@redhat.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Mon, 9 Sep 2002 21:03:26 +0000 (21:03 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Mon, 9 Sep 2002 21:03:26 +0000 (21:03 +0000)
From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
* top.c (init_main): Set rl_terminal_name.

gdb/ChangeLog
gdb/top.c

index 24e04b8c9df912fe067702aab5f04c3dca1e3970..07c94123bc361d2434e17ecb79988151827d511c 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
+
+       From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
+       * top.c (init_main): Set rl_terminal_name.
+
 2002-09-08  Aidan Skinner <aidan@velvet.net>
 
        * ada-lang.c (ada_array_bound, ada_type_match,
index a2cee530c20be5e84f2318d6159d33b738f5ef83..60c1bf9c3e08e5e7774bd55f4efa99f55e0487c3 100644 (file)
--- 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.  */