[issue984870] curses: getmaxyx() breaks when the window shrinks
akira
report at bugs.python.org
Sun Apr 17 21:58:35 CEST 2011
akira <4kir4.1i at gmail.com> added the comment:
The test produces a traceback while shrinking a window (increasing the window size works ok):
Traceback (most recent call last):
File "screen-resize-bug-curses.py", line 22, in <module>
curses.wrapper(main)
File "/.../python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "screen-resize-bug-curses.py", line 17, in main
init_display(stdscr)
File "screen-resize-bug-curses.py", line 9, in init_display
rootwin = stdscr.derwin(20, 50, 0, 0)
_curses.error: curses function returned NULL
Version info:
$ python2.7 -c'import curses; print curses.version'
2.2
----------
nosy: +akira
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue984870>
_______________________________________
More information about the Python-bugs-list
mailing list