Detecting Window Resizing
Oleg Broytmann
phd at phd.russ.ru
Fri Jun 30 03:37:15 EDT 2000
On Thu, 29 Jun 2000, C. Porter Bassett wrote:
> Is it possible in python to detect when the virtual console that a curses
> program is running in is re-sized. My program checks to see the size of
> the window to know how much it can draw, but it still gives me a
> segmentation fault if I shrink the window down. I am running this on
> linux.
Terminal emulator will send you SIGWINCH (signal for window changing)
upon resizing. Catch the signal...
Oleg. (All opinions are mine and not of my employer)
----
Oleg Broytmann Foundation for Effective Policies phd at phd.russ.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list