diff options
| author | Karoly Lorentey | 2005-09-19 21:25:51 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2005-09-19 21:25:51 +0000 |
| commit | a3c07f683d1f9fbf7c7af0120dfebc5fc34b61fa (patch) | |
| tree | aa2226b4ecb0795229342ef55685e0426218aa1f /src | |
| parent | 5826661f18ae8c95b26951a042692e68b9bc093f (diff) | |
| download | emacs-a3c07f683d1f9fbf7c7af0120dfebc5fc34b61fa.tar.gz emacs-a3c07f683d1f9fbf7c7af0120dfebc5fc34b61fa.zip | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/term.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c index 3b3f0ad2132..bb7f7354890 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -250,8 +250,9 @@ tty_set_terminal_modes (struct device *display) | |||
| 250 | /* Output enough newlines to scroll all the old screen contents | 250 | /* Output enough newlines to scroll all the old screen contents |
| 251 | off the screen, so it won't be overwritten and lost. */ | 251 | off the screen, so it won't be overwritten and lost. */ |
| 252 | int i; | 252 | int i; |
| 253 | current_tty = tty; | ||
| 253 | for (i = 0; i < FRAME_LINES (XFRAME (selected_frame)); i++) | 254 | for (i = 0; i < FRAME_LINES (XFRAME (selected_frame)); i++) |
| 254 | putchar ('\n'); | 255 | cmputc ('\n'); |
| 255 | } | 256 | } |
| 256 | 257 | ||
| 257 | OUTPUT_IF (tty, tty->TS_termcap_modes); | 258 | OUTPUT_IF (tty, tty->TS_termcap_modes); |