>> I have copied the following example from "Learning to Program by >> Alan >> Gauld (section: Event Driven Programming)". To run it on Linux >> (Redhat 8.0; Python 2.4) the tutorial says to replace 'msvcrt' >> with 'curses.stdscr'.
I thought I'd fixed that fault. The sequence should be: import curses mscvrt = curses.initscr() mscvcrt.getch() I will make the changes and upload the fixed file as soon as possible. Thanks for bringing it up. Alan G Author of the Learn to Program web tutor http://www.freenetpages.co.uk/hp/alan.gauld > > > Hi Hossein, > > > According to: > > http://www.amk.ca/python/howto/curses/ > > > Alan probably meant to say to replace: > > ###### > import msvcrt > ###### > > with: > > ###### > import curses > msvcrt = curses.initscr() > ###### > > as a quick hack to replace 'msvcrt' with something that works on > Linux. > > > It sounded that you wanted to look at other examples of curses > programming? A long time ago, I wrote a quick-and-dirty demo > program that > uses curses here: > > http://hkn.eecs.berkeley.edu/~dyoo/python/circularwriting.py > > > Good luck to you! > > > _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor