[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Display problems
From: |
Peter Jay Salzman |
Subject: |
Re: Display problems |
Date: |
Wed, 23 Jan 2002 18:16:17 -0800 |
User-agent: |
Mutt/1.3.25i |
begin Thomas E. Dickey <address@hidden>
> On Wed, 23 Jan 2002, Ben Kohlen wrote:
>
> > The problem only happens with a WINDOW created by
> > newwin(). Not with stdscr. Maybe (probably) it's my
> > own brain-damage, so here's a demonstrative example:
> >
> #include <curses.h>
>
> > w = newwin();
> ^^^missing parameters
i just assumed he abbreviated the call to 0, 0, 0, 0 in order to make
the code look less complicated to us.
> > wprintw(w, "foo");
> > wrefresh(w);
> > getch();
> ^^^^^ this does a refresh, overwriting the wrefresh that
> preceded, since there was a pending erase from initscr.
> Changing it to wgetch(w) would do what you intended.
ok, you've un-confused me. thank you for the explanation!
pete