bug-ncurses
[Top][All Lists]
Advanced

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

Re: strange refreshing behavior with mvaddch()/mvaddstr()


From: Thomas Dickey
Subject: Re: strange refreshing behavior with mvaddch()/mvaddstr()
Date: Fri, 31 Aug 2001 05:31:40 -0400
User-agent: Mutt/1.2.5i

On Thu, Aug 30, 2001 at 08:11:38PM -0500, FRIEDLEY, ANDREW wrote:
> alright thanks. you wouldnt happen to know a way around this would you?
> 
> (sorry for double sending to brian)
> 
> -----Original Message-----
> From: Brian Raiter [mailto:address@hidden
> Sent: Thursday, August 30, 2001 7:44 PM
> To: address@hidden
> Subject: Re: strange refreshing behavior with mvaddch()/mvaddstr()
> 
> 
> > My problem is, whenever I change the contents of stdscr, the screen
> > refreshes just as if i called refresh().  I am only using mvaddch()
> and
> > mvaddstr(), and waddch(stdscr, blah) to draw.
> 
> ... and wgetch(). From the wgetch man page:
> 
>        If the window is not a pad, and it has been moved or modified
>        since the last call to wrefresh, wrefresh will be called before
>        another character is read.

the flicker is produced by the 'clear()' call (man wclear):

       The  clear  and wclear routines are like erase and werase,
       but they also call clearok, so that the screen is  cleared
       completely  on  the  next call to wrefresh for that window
       and repainted from scratch.

for the effect you're trying to produce, clrtoeol() or clrtobot() would
be better.

-- 
Thomas E. Dickey <address@hidden>
http://dickey.his.com
ftp://dickey.his.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]