Problems with curses
siddhantgoel at gmail.com
Sun Jul 20 11:42:44 CEST 2008
On Jul 13, 6:22 pm, Clay Hobbs <c... at lakeserv.net> wrote:
> > On Sat, 12 Jul 2008 20:49:56 -0400, Clay Hobbs wrote:
> > > Unfortunately, the error message isn't very helpful.
> > But it would be helpful to tell it. If you get exceptions, always
> > copy'n'paste the traceback here. People might know what the exception
> > means and share their wisdom.
> Here is the error message:
> Traceback (most recent call last):
> File "./text_adventure.py", line 25, in <module>
> File "/usr/lib/python2.5/curses/wrapper.py", line 44, in wrapper
> return func(stdscr, *args, **kwds)
> File "./text_adventure.py", line 19, in main
> _curses.error: scroll() returned ERR
> -- Ratfink
You need to put a stdscr.scrollok(True) in the beginning. That should
avoid the exception.
More information about the Python-list