diff src/term.c @ 83382:7a3090aca393

Fix hardcoded stdout usage in term.c. (Reported by Dan Nicolaescu.) * src/term.c (tty_set_terminal_modes): Output newlines on the correct terminal device. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-422
author Karoly Lorentey <lorentey@elte.hu>
date Mon, 19 Sep 2005 21:25:51 +0000
parents 5272862a4865
children 732c5740ca8f
line wrap: on
line diff
--- a/src/term.c	Sat Sep 17 19:10:55 2005 +0000
+++ b/src/term.c	Mon Sep 19 21:25:51 2005 +0000
@@ -250,8 +250,9 @@
           /* Output enough newlines to scroll all the old screen contents
              off the screen, so it won't be overwritten and lost.  */
           int i;
+          current_tty = tty;
           for (i = 0; i < FRAME_LINES (XFRAME (selected_frame)); i++)
-            putchar ('\n');
+            cmputc ('\n');
         }
 
       OUTPUT_IF (tty, tty->TS_termcap_modes);