Curses and resizing windows

Thomas Dickey dickey at saltmine.radix.net
Tue Jun 22 06:21:19 EDT 2004


Chris Share <usenet at caesium.me.uk> wrote:
> I've been writing an application using curses, and have been trying to
> handle resizing the terminal, if running in xterm or similar. Increasing
> the window size is working perfectly, however shrinking it is not
> working at all. No matter how much I shrink the window, the size
> returned by getmaxyx() does not change. However as soon as I increase it
> again, it works fine. 

> I've tracked the problem down to the fact I have created a window
> derived from stdscr. A small script showing the effect is at the end of
> this post. 

odd (thanks for the example - I don't know if this is a problem in
ncurses or in the python interface to it, but will check/see).

> Can anyone suggest how to solve this problem, that doesn't involve not
> making a derwin of stdscr?

> I've been googling for hours, but found nothing to help.

> Python version is 2.3.4 on debian testing.

probably should report it as a bug (so it's not overlooked).

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



More information about the Python-list mailing list