Re: Problems with curses

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Clay Hobbs

    Re: Problems with curses

    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>
    curses.wrapper( main)
    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
    stdscr.scroll(3 )
    _curses.error: scroll() returned ERR


    -- Ratfink

  • Siddhant

    #2
    Re: Problems with curses

    On Jul 13, 6:22 pm, Clay Hobbs <c...@lakeserv. netwrote:
    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>
        curses.wrapper( main)
      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
        stdscr.scroll(3 )
    _curses.error: scroll() returned ERR
    >
    -- Ratfink
    You need to put a stdscr.scrollok (True) in the beginning. That should
    avoid the exception.
    -Siddhant

    Comment

    Working...