[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: refresh before wrefresh
From: |
Dan Gookin |
Subject: |
Re: refresh before wrefresh |
Date: |
Mon, 23 Aug 2010 12:58:43 -0700 |
Patch date info:
#define NCURSES_VERSION_PATCH 20081102
I don't know the specific patch for the older version the code ran well under,
though it was version 5.5
Thanks,
DAN
On Aug 23, 2010, at 12:44 PM, Thomas Dickey wrote:
> 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