bug-ncurses
[Top][All Lists]
Advanced

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

Display problems


From: Ben Kohlen
Subject: Display problems
Date: Wed, 23 Jan 2002 02:16:15 -0800 (PST)

It seems that ncurses doesn't want to put anything on
screen until getch() has been called.  Before a call
to getch(), the cursor will be advanced by any call to
wprintw() that I make (followed by a wrefresh()), but
the text doesn't show up.  This on mandrake8.1 on x86,
with stock ncurses 5.2, and with latest rollup patch. 
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:

int main(void) {
        WINDOW *w;
        initscr();
        cbreak();
        noecho();
        w = newwin();
        wprintw(w, "foo");
        wrefresh(w);
        getch();
        wprintw(w, "bar");
        wrefresh(w);
        delwin(w);
        endwin();
}

The above code outputs "   bar" when a key is hit.  If
anyone can help, it would be greatly appreciated. 
I've been at this, and a similar problem, where the
pre-getch() text shows up _until_ a key is hit, then
disappears, for over a month now.

Thanks,
Ben

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/



reply via email to

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