[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Display problems
From: |
Ben Kohlen |
Subject: |
Re: Display problems |
Date: |
Wed, 23 Jan 2002 20:24:50 -0800 (PST) |
> > int main(void) {
> > WINDOW *w;
> > initscr();
> > cbreak();
> > noecho();
> > w = newwin();
> ^^^missing parameters
That's what I get for typing it out instead of copy
and paste my walp.c.
> > 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.
Ah! I am enlightened. Thank you, very much. I am
surprised, however, that the refresh() in getch() is
carried out even after a noecho().
> > wprintw(w, "bar");
> > wrefresh(w);
> > delwin(w);
> > endwin();
> > }
Thanks again,
Ben
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com
- Re: Display problems, (continued)