NetBSD-Bugs archive

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

Re: lib/41223: libcurses: curs_set and move do not cause refresh on getch



The following reply was made to PR lib/41223; it has been noted by GNATS.

From: Brett Lymn <blymn%baesystems.com.au@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: lib/41223: libcurses: curs_set and move do not cause refresh on 
getch
Date: Tue, 21 Apr 2009 23:16:55 +0930

 Try this patch to see if it makes a difference:
 
 Index: curs_set.c
 ===================================================================
 RCS file: /cvsroot/src/lib/libcurses/curs_set.c,v
 retrieving revision 1.8
 diff -u -r1.8 curs_set.c
 --- curs_set.c 21 Jan 2007 13:25:36 -0000      1.8
 +++ curs_set.c 21 Apr 2009 13:44:47 -0000
 @@ -59,6 +59,7 @@
  #endif
                                _cursesi_screen->old_mode = 0;
                                tputs(__tc_vi, 0, __cputchar);
 +                              fflush(_cursesi_screen->outfd);
                                return old_one;
                        }
                        break;
 @@ -70,6 +71,7 @@
  #endif
                                _cursesi_screen->old_mode = 1;
                                tputs(__tc_ve, 0, __cputchar);
 +                              fflush(_cursesi_screen->outfd);
                                return old_one;
                        }
                        break;
 @@ -82,6 +84,7 @@
  #endif
                                _cursesi_screen->old_mode = 2;
                                tputs(__tc_vs, 0, __cputchar);
 +                              fflush(_cursesi_screen->outfd);
                                return old_one;
                        }
                        break;
 
 -- 
 Brett Lymn
 "Warning:
 The information contained in this email and any attached files is
 confidential to BAE Systems Australia. If you are not the intended
 recipient, any use, disclosure or copying of this email or any
 attachments is expressly prohibited.  If you have received this email
 in error, please notify us immediately. VIRUS: Every care has been
 taken to ensure this email and its attachments are virus free,
 however, any loss or damage incurred in using this email is not the
 sender's responsibility.  It is your responsibility to ensure virus
 checks are completed before installing any data sent in this email to
 your computer."
 
 


Home | Main Index | Thread Index | Old Index