# HG changeset patch # User Karoly Lorentey # Date 1127165151 0 # Node ID 7a3090aca393a335a93c2d16be5127ea52b5aa6b # Parent d84f940244dce0271fbf299c3c449bf482734a7f 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 diff -r d84f940244dc -r 7a3090aca393 src/term.c --- 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);