diff options
| author | Karoly Lorentey | 2005-07-03 17:09:22 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2005-07-03 17:09:22 +0000 |
| commit | 2f98e6e37b5870a644a178d4d6998c6c7f1f68dd (patch) | |
| tree | 521afcd955de41a5665ab149a54ddf1ef046c1c1 /src/term.c | |
| parent | a1e76a629b601f19d7dc0acc28679355eaa1800b (diff) | |
| download | emacs-2f98e6e37b5870a644a178d4d6998c6c7f1f68dd.tar.gz emacs-2f98e6e37b5870a644a178d4d6998c6c7f1f68dd.zip | |
Fix the original cause of the "arrow keys don't work on screen" bug.
* src/term.c (tty_set_terminal_modes, tty_reset_terminal_modes): Flush
tty output before returning.
* src/sysdep.c (reset_sys_modes): Remove superflous fflush call.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-370
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index 8f541816798..1d165d36aca 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -249,6 +249,7 @@ tty_set_terminal_modes (struct display *display) | |||
| 249 | OUTPUT_IF (tty, tty->TS_cursor_visible); | 249 | OUTPUT_IF (tty, tty->TS_cursor_visible); |
| 250 | OUTPUT_IF (tty, tty->TS_keypad_mode); | 250 | OUTPUT_IF (tty, tty->TS_keypad_mode); |
| 251 | losecursor (tty); | 251 | losecursor (tty); |
| 252 | fflush (tty->output); | ||
| 252 | } | 253 | } |
| 253 | } | 254 | } |
| 254 | 255 | ||
| @@ -270,6 +271,7 @@ tty_reset_terminal_modes (struct display *display) | |||
| 270 | /* Output raw CR so kernel can track the cursor hpos. */ | 271 | /* Output raw CR so kernel can track the cursor hpos. */ |
| 271 | current_tty = tty; | 272 | current_tty = tty; |
| 272 | cmputc ('\r'); | 273 | cmputc ('\r'); |
| 274 | fflush (tty->output); | ||
| 273 | } | 275 | } |
| 274 | } | 276 | } |
| 275 | 277 | ||