Re: ncurses strangeness?
>>>>> "MP" == Mark Paulus <mpaulus78@earthlink.net> writes:
MP> When you say, "exits (as I expect)", what exactly do you mean
MP> by that statement?
I meant that exit(0) gets executed.
MP> Does it not quit?
No (not on GNU/Hurd).
MP> Is the terminal messed up?
No, it's blank (when the program runs).
MP> Does your terminal just hang?
Until I interupt it, yes.
MP> I have compiled your program on cygwin, and while it exits
MP> when a 'q' is pressed, it does not clean up after itself. I
MP> have to do a 'stty sane' afterwards to make the screen act
MP> normally. The way to fix that is to add an endwin() statement
MP> before each of your exit statements.
Yes, you are quite right and that probably explains the
strange behaviour on SGI. I neglected to add it because I was
more interested in getch() not doing what I expected, and
GNU/Linux tidied up the terminal for me so I didn't otherwise
notice the problem.
I wondered if it had something to do with the keyboard
translator...
MP> On Mon, 1 Oct 2001 20:39:44 +0100, Paul.Emsley@chem.gla.ac.uk
MP> wrote:
>>
>> My C programming skills are sadly week, ...
But not as weak as my spelling, apparently.
Thanks,
Paul.
--
Paul.Emsley@chem.gla.ac.uk
http://www.chem.gla.ac.uk/~paule
Reply to: