Tim Peeler on Fri, 7 Jan 2000 18:45:31 -0500 (EST)


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

Re: [PLUG] Ncurses


On Fri, 07 Jan 2000, you wrote:
> Funny, I changed main.c to look like this:
> 
> ...
>     wnoutrefresh(TopMenuWindow);
>    wnoutrefresh(HelpWindow);
>    doupdate();
>    sleep(2);
>    for(;;){
>       main_for_loop();
>    }
> ...
> 
> and for the 2 seconds before the sleep, everything's ok...If I move the sleep
> into main_for_loop(), the same behavior occurrs...
> 
> perhaps the stdio getc() is doing something that causes a reset in the ncurses 
> libs?
> 
> is there are 'readchar' type function taht's part of ncurses perhaps?
> 
> k

Bleh, I got it to work.  I used wgetch(TopMenuWindow) and it worked out.  I
don't know why it did that...  (unless it has something to do with getch()
working on stdscr)

Tim

_______________________________________________
PLUG maillist  -  PLUG@lists.nothinbut.net
http://lists.nothinbut.net/mail/listinfo/plug