changeset 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 d84f940244dc
children 2a679c81f552
files src/term.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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);