diff options
author | Eli Zaretskii <[email protected]> | 2008-08-30 12:15:06 +0000 |
---|---|---|
committer | Eli Zaretskii <[email protected]> | 2008-08-30 12:15:06 +0000 |
commit | 657ceaa03e351d272036473c8ba52ca15e95e077 (patch) | |
tree | c0575c815bce7eff32f91cae15a2b5d4dbcb919e /src | |
parent | dbe6b8bb06480970fea2cf551ca95c7216954ddc (diff) |
(init_display): Set `tty's association in frame's parameters alist to the name
of the terminal device, if that is known.
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 6 | ||||
-rw-r--r-- | src/dispnew.c | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 97135252c2..fc64f7e33f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2008-08-30 Eli Zaretskii <[email protected]> + + * 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 <[email protected]> * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script. diff --git a/src/dispnew.c b/src/dispnew.c index 895b6490da..48a8bd283c 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)); } { |