|
From: | Thomas Dickey |
Subject: | Re: window fails to display after wrefresh() |
Date: | Wed, 22 Jun 2005 15:53:18 -0400 (EDT) |
On Wed, 22 Jun 2005, Joshua Karstendick wrote:
In the following program, I try to demonstrate the use of windows by creating two windows next to each other. win1 is supposed to be displayed, then win2. But if I don't call refresh(), win1 is never displayed. Oddly enough, win2 is, though. I'm calling wrefresh() on both of them.
initscr() creates stdscr, which is initially setup to erase (so that's a pending change). getch() refreshes stdscr if it has pending changes before doing anything else - so that wipes out anything that you did with win1 or win2. Use wgetch(win1) or wgetch(win2), as needed. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |