Move terminal descriptor flush before stty to eliminate potential problems

whith characters conversion changed like \n -> \r\n and so on.
This commit is contained in:
Andrey A. Chernov 2000-07-27 23:58:35 +00:00
parent 94375988c6
commit 5af16a0159
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63946

View File

@ -438,8 +438,8 @@ el_gets(el, nread)
}
}
(void) tty_cookedmode(el); /* make sure the tty is set up correctly */
term__flush(); /* flush any buffered output */
(void) tty_cookedmode(el); /* make sure the tty is set up correctly */
if (el->el_flags & HANDLE_SIGNALS)
sig_clr(el);
if (nread)