aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaroly Lorentey <[email protected]>2005-09-19 21:25:51 +0000
committerKaroly Lorentey <[email protected]>2005-09-19 21:25:51 +0000
commita3c07f683d1f9fbf7c7af0120dfebc5fc34b61fa (patch)
treeaa2226b4ecb0795229342ef55685e0426218aa1f
parent5826661f18ae8c95b26951a042692e68b9bc093f (diff)
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: [email protected]/emacs--multi-tty--0--patch-422
-rw-r--r--src/term.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c
index 3b3f0ad213..bb7f735489 100644
--- a/src/term.c
+++ b/src/term.c
@@ -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);