Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcurses flush the output after writing the meta sequence.



details:   https://anonhg.NetBSD.org/src/rev/7326839a5634
branches:  trunk
changeset: 768051:7326839a5634
user:      blymn <blymn%NetBSD.org@localhost>
date:      Sun Aug 07 10:52:18 2011 +0000

description:
flush the output after writing the meta sequence.

diffstat:

 lib/libcurses/meta.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r b30169f6e551 -r 7326839a5634 lib/libcurses/meta.c
--- a/lib/libcurses/meta.c      Sun Aug 07 10:04:41 2011 +0000
+++ b/lib/libcurses/meta.c      Sun Aug 07 10:52:18 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: meta.c,v 1.7 2010/02/03 15:34:40 roy Exp $     */
+/*     $NetBSD: meta.c,v 1.8 2011/08/07 10:52:18 blymn Exp $   */
 
 /*-
  * Copyright (c) 1998-2000 Brett Lymn
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: meta.c,v 1.7 2010/02/03 15:34:40 roy Exp $");
+__RCSID("$NetBSD: meta.c,v 1.8 2011/08/07 10:52:18 blymn Exp $");
 #endif                         /* not lint */
 
 #include "curses.h"
@@ -51,6 +51,7 @@
 #endif
                        tputs(meta_on, 0, __cputchar);
                        _cursesi_screen->meta_state = TRUE;
+                       fflush(_cursesi_screen->outfd);
                }
        } else {
                if (meta_off != NULL) {
@@ -59,6 +60,7 @@
 #endif
                        tputs(meta_off, 0, __cputchar);
                        _cursesi_screen->meta_state = FALSE;
+                       fflush(_cursesi_screen->outfd);
                }
        }
 



Home | Main Index | Thread Index | Old Index