From 657ceaa03e351d272036473c8ba52ca15e95e077 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 30 Aug 2008 12:15:06 +0000 Subject: [PATCH] (init_display): Set `tty's association in frame's parameters alist to the name of the terminal device, if that is known. --- src/ChangeLog | 6 ++++++ src/dispnew.c | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 97135252c25..fc64f7e33f8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2008-08-30 Eli Zaretskii + + * dispnew.c (init_display): Set `tty's association in frame's + parameters alist to the name of the terminal device, if that is + known. + 2008-08-29 Jason Rumney * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script. diff --git a/src/dispnew.c b/src/dispnew.c index 895b6490dae..48a8bd283c3 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -6944,7 +6944,13 @@ init_display () Fmodify_frame_parameters (selected_frame, Fcons (Fcons (Qtty_type, Ftty_type (selected_frame)), Qnil)); - Fmodify_frame_parameters (selected_frame, Fcons (Fcons (Qtty, Qnil), Qnil)); + if (t->display_info.tty->name) + Fmodify_frame_parameters (selected_frame, + Fcons (Fcons (Qtty, build_string (t->display_info.tty->name)), + Qnil)); + else + Fmodify_frame_parameters (selected_frame, Fcons (Fcons (Qtty, Qnil), + Qnil)); } { -- 2.39.5