Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit Make sure we flush after we prepare when we are ...
details: https://anonhg.NetBSD.org/src/rev/678d22202719
branches: trunk
changeset: 574703:678d22202719
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 09 23:55:02 2005 +0000
description:
Make sure we flush after we prepare when we are unbuffered otherwise the
prompt will not appear immediately.
diffstat:
lib/libedit/read.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r decbda5b868f -r 678d22202719 lib/libedit/read.c
--- a/lib/libedit/read.c Wed Mar 09 23:40:08 2005 +0000
+++ b/lib/libedit/read.c Wed Mar 09 23:55:02 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: read.c,v 1.34 2004/07/08 00:51:36 christos Exp $ */
+/* $NetBSD: read.c,v 1.35 2005/03/09 23:55:02 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)read.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: read.c,v 1.34 2004/07/08 00:51:36 christos Exp $");
+__RCSID("$NetBSD: read.c,v 1.35 2005/03/09 23:55:02 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -366,6 +366,9 @@
re_clear_display(el); /* reset the display stuff */
ch_reset(el);
re_refresh(el); /* print the prompt */
+
+ if (el->el_flags & UNBUFFERED)
+ term__flush();
}
protected void
Home |
Main Index |
Thread Index |
Old Index