Fix hardcoded stdout usage in term.c. (Reported by Dan Nicolaescu.)
authorKaroly Lorentey <lorentey@elte.hu>
Mon, 19 Sep 2005 21:25:51 +0000 (21:25 +0000)
committerKaroly Lorentey <lorentey@elte.hu>
Mon, 19 Sep 2005 21:25:51 +0000 (21:25 +0000)
* 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

src/term.c

index 3b3f0ad..bb7f735 100644 (file)
@@ -250,8 +250,9 @@ tty_set_terminal_modes (struct device *display)
           /* 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);