# HG changeset patch # User Eli Zaretskii # Date 1220098471 0 # Node ID 2aa441279c89d612c486c79f17e2e8aebc06df0c # Parent 5130506ce23b0cd2801fd02a1796b8b5d1c42b5c (init_display): Set `tty's association in frame's parameters alist to the name of the terminal device, if that is known. diff -r 5130506ce23b -r 2aa441279c89 src/dispnew.c --- a/src/dispnew.c Sat Aug 30 03:26:14 2008 +0000 +++ b/src/dispnew.c Sat Aug 30 12:14:31 2008 +0000 @@ -6944,7 +6944,13 @@ 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)); } {