Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Problems with reentering curses mode #25
I'm having trouble with using ncurses as one mode of my program. Basically, sometimes I want to have a curses style interface, and sometimes I want a more traditional readline interface (with the initial interface being the non-curses one). I'm able to successfully start the ncurses interface the first time. If I close all the windows, I end up back at the readline interface as expected. When I try to return to the curses interface the next time though, the program aborts with this error:
I also tried using nc.leave and nc.restore, but there the problem is that after nc.leave finishes, the curses objects are consuming the characters coming in on stdin.
After poking around in the code a bit, I think the problems can be solved (i'm trying out the changes now). It left me wondering though if there was some interface I'm missing to do what I'd like to do.