Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses fflush the outfd after setting the cursor visi...
details: https://anonhg.NetBSD.org/src/rev/ac71fee66c03
branches: trunk
changeset: 763662:ac71fee66c03
user: blymn <blymn%NetBSD.org@localhost>
date: Wed Mar 30 09:47:02 2011 +0000
description:
fflush the outfd after setting the cursor visibility so it takes effect
immediately.
diffstat:
lib/libcurses/curs_set.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (42 lines):
diff -r 459fd33e434b -r ac71fee66c03 lib/libcurses/curs_set.c
--- a/lib/libcurses/curs_set.c Wed Mar 30 09:43:21 2011 +0000
+++ b/lib/libcurses/curs_set.c Wed Mar 30 09:47:02 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: curs_set.c,v 1.9 2010/02/03 15:34:40 roy Exp $ */
+/* $NetBSD: curs_set.c,v 1.10 2011/03/30 09:47:02 blymn Exp $ */
/*-
* Copyright (c) 1998-2000 Brett Lymn
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: curs_set.c,v 1.9 2010/02/03 15:34:40 roy Exp $");
+__RCSID("$NetBSD: curs_set.c,v 1.10 2011/03/30 09:47:02 blymn Exp $");
#endif /* not lint */
#include "curses.h"
@@ -59,6 +59,7 @@
#endif
_cursesi_screen->old_mode = 0;
tputs(cursor_invisible, 0, __cputchar);
+ fflush(_cursesi_screen->outfd);
return old_one;
}
break;
@@ -70,6 +71,7 @@
#endif
_cursesi_screen->old_mode = 1;
tputs(cursor_normal, 0, __cputchar);
+ fflush(_cursesi_screen->outfd);
return old_one;
}
break;
@@ -82,6 +84,7 @@
#endif
_cursesi_screen->old_mode = 2;
tputs(cursor_visible, 0, __cputchar);
+ fflush(_cursesi_screen->outfd);
return old_one;
}
break;
Home |
Main Index |
Thread Index |
Old Index