[Tutor] Curses example on Linux?
Alan Gauld
alan.gauld at btinternet.com
Fri Aug 12 21:13:35 CEST 2005
"Hossein Movahhedian" <dma8hm1956 at gmail.com> wrote in message
news:Pine.LNX.4.58.0508091603050.5555 at Rakhsh.Rostam.Dastan...
> "ky = chr(msvcrt.getch())". The other problem is that when
> the program is finished the previous terminal state is not
> restored (I am using xterm on Linux).
OK, experimenting with the Linux stty command shows that
$ stty echo -nl
will restore the terminal to the proper settings.
I still haven't figured out how to do it from inside
python/curses - that's my next step!
Alan G.
More information about the Tutor
mailing list