diff options
| author | Paul Eggert | 2014-04-17 07:59:22 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-04-17 07:59:22 -0700 |
| commit | f0496348d1b9b1f2fff9e4265f51cbdc77eb40dc (patch) | |
| tree | 483ea94f35b54f80d123e6d2070169773ed451f1 /src/term.c | |
| parent | bfc30790686607fac1b7667d3a73d0f46b80e85f (diff) | |
| download | emacs-f0496348d1b9b1f2fff9e4265f51cbdc77eb40dc.tar.gz emacs-f0496348d1b9b1f2fff9e4265f51cbdc77eb40dc.zip | |
* term.c (tty_send_additional_strings): No need to fflush here,
as callers fflush.
(tty_set_terminal_modes): fflush after sending additional strings,
not before.
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/term.c b/src/term.c index 9d9d682a544..6ea9a4eba9a 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -165,7 +165,7 @@ tty_ring_bell (struct frame *f) | |||
| 165 | /* Set up termcap modes for Emacs. */ | 165 | /* Set up termcap modes for Emacs. */ |
| 166 | 166 | ||
| 167 | static void | 167 | static void |
| 168 | tty_send_additional_strings (struct terminal* terminal, Lisp_Object sym) | 168 | tty_send_additional_strings (struct terminal *terminal, Lisp_Object sym) |
| 169 | { | 169 | { |
| 170 | Lisp_Object lisp_terminal; | 170 | Lisp_Object lisp_terminal; |
| 171 | Lisp_Object extra_codes; | 171 | Lisp_Object extra_codes; |
| @@ -180,7 +180,6 @@ tty_send_additional_strings (struct terminal* terminal, Lisp_Object sym) | |||
| 180 | if (STRINGP (string)) | 180 | if (STRINGP (string)) |
| 181 | { | 181 | { |
| 182 | fwrite (SDATA (string), 1, SBYTES (string), tty->output); | 182 | fwrite (SDATA (string), 1, SBYTES (string), tty->output); |
| 183 | fflush (tty->output); | ||
| 184 | if (tty->termscript) | 183 | if (tty->termscript) |
| 185 | fwrite (SDATA (string), 1, SBYTES (string), tty->termscript); | 184 | fwrite (SDATA (string), 1, SBYTES (string), tty->termscript); |
| 186 | } | 185 | } |
| @@ -209,8 +208,8 @@ tty_set_terminal_modes (struct terminal *terminal) | |||
| 209 | OUTPUT_IF (tty, visible_cursor ? tty->TS_cursor_visible : tty->TS_cursor_normal); | 208 | OUTPUT_IF (tty, visible_cursor ? tty->TS_cursor_visible : tty->TS_cursor_normal); |
| 210 | OUTPUT_IF (tty, tty->TS_keypad_mode); | 209 | OUTPUT_IF (tty, tty->TS_keypad_mode); |
| 211 | losecursor (tty); | 210 | losecursor (tty); |
| 212 | fflush (tty->output); | ||
| 213 | tty_send_additional_strings (terminal, Qtty_mode_set_strings); | 211 | tty_send_additional_strings (terminal, Qtty_mode_set_strings); |
| 212 | fflush (tty->output); | ||
| 214 | } | 213 | } |
| 215 | } | 214 | } |
| 216 | 215 | ||