aboutsummaryrefslogtreecommitdiffstats
path: root/src/dispnew.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dispnew.c')
-rw-r--r--src/dispnew.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 15d3c2a599a..45211b9d2e9 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -6826,8 +6826,7 @@ FILE = nil means just close any termscript file currently open. */)
6826{ 6826{
6827 struct tty_display_info *tty; 6827 struct tty_display_info *tty;
6828 6828
6829 if (! FRAME_TERMCAP_P (SELECTED_FRAME ()) 6829 if (!is_tty_frame (SELECTED_FRAME ()))
6830 && ! FRAME_MSDOS_P (SELECTED_FRAME ()))
6831 error ("Current frame is not on a tty device"); 6830 error ("Current frame is not on a tty device");
6832 6831
6833 tty = CURTTY (); 6832 tty = CURTTY ();
@@ -7394,7 +7393,7 @@ init_display_interactive (void)
7394 t = init_tty (0, terminal_type, 1); /* Errors are fatal. */ 7393 t = init_tty (0, terminal_type, 1); /* Errors are fatal. */
7395 7394
7396 /* Convert the initial frame to use the new display. */ 7395 /* Convert the initial frame to use the new display. */
7397 if (f->output_method != output_initial) 7396 if (!FRAME_INITIAL_P (f))
7398 emacs_abort (); 7397 emacs_abort ();
7399 f->output_method = t->type; 7398 f->output_method = t->type;
7400 f->terminal = t; 7399 f->terminal = t;
@@ -7404,7 +7403,7 @@ init_display_interactive (void)
7404 f->output_data.tty = &the_only_tty_output; 7403 f->output_data.tty = &the_only_tty_output;
7405 f->output_data.tty->display_info = &the_only_display_info; 7404 f->output_data.tty->display_info = &the_only_display_info;
7406#else 7405#else
7407 if (f->output_method == output_termcap) 7406 if (FRAME_TERMCAP_P (f))
7408 create_tty_output (f); 7407 create_tty_output (f);
7409#endif 7408#endif
7410 t->display_info.tty->top_frame = selected_frame; 7409 t->display_info.tty->top_frame = selected_frame;