bug-ncurses
[Top][All Lists]
Advanced

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

Re: refresh before wrefresh


From: Thomas Dickey
Subject: Re: refresh before wrefresh
Date: Mon, 23 Aug 2010 15:44:25 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

On Sun, Aug 22, 2010 at 10:27:03PM -0700, Dan Gookin wrote:
> Is a refresh() required to display a window before a wrefresh() is used?
> 
> I have a program that makes four windows within the terminal window.  Each
> window is created with newwin().  Text is written with mvwaddstr() to each
> window, followed by a wrefresh() command on that window.  But the text
> doesn't show up unless there is an initial refresh() command given earlier in
> the code.  Is that normal behavior?  The reason I'm asking is that the code
> worked for older versions of Ncurses, but doesn't work now.

I suppose that could be a bug.  Lacking that last sentence, my offhand
view of the code is that initscr() leaves stdscr with a pending erase
which could complicate things.

I'll dig into it to see if I can spot when a change might have occurred.

What's the version of ncurses (patch date) that you're using?
 
> Also, internally, doesn't wrefresh() call the same function as refresh()?

yes, it does that.  refresh() is normally a macro, though there's a non-macro
version of it, doing the same thing.

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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