summaryrefslogtreecommitdiffstats
path: root/lib/libedit
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2000-07-27 23:58:35 +0000
committerache <ache@FreeBSD.org>2000-07-27 23:58:35 +0000
commit027e13ee4007f82ac5ac167cb7b0ef641550dcf8 (patch)
tree121f42b4f5b596cc983b3cee119c33bb67de2e05 /lib/libedit
parent63e54fc518e481c76879238994c61832c0d8cfc3 (diff)
downloadFreeBSD-src-027e13ee4007f82ac5ac167cb7b0ef641550dcf8.zip
FreeBSD-src-027e13ee4007f82ac5ac167cb7b0ef641550dcf8.tar.gz
Move terminal descriptor flush before stty to eliminate potential problems
whith characters conversion changed like \n -> \r\n and so on.
Diffstat (limited to 'lib/libedit')
-rw-r--r--lib/libedit/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libedit/read.c b/lib/libedit/read.c
index 2db1942..8193431 100644
--- a/lib/libedit/read.c
+++ b/lib/libedit/read.c
@@ -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)
OpenPOWER on IntegriCloud