* 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
#endif
tty_reset_terminal_modes (tty_out->display);
- fflush (tty_out->output);
+
#ifdef BSD_SYSTEM
#ifndef BSD4_1
/* Avoid possible loss of output when changing terminal modes. */
OUTPUT_IF (tty, tty->TS_cursor_visible);
OUTPUT_IF (tty, tty->TS_keypad_mode);
losecursor (tty);
+ fflush (tty->output);
}
}
/* Output raw CR so kernel can track the cursor hpos. */
current_tty = tty;
cmputc ('\r');
+ fflush (tty->output);
}
}