This is two questions really:
Is it possible to know when a window has changed size?
I really can't find any good doc, not even covered on http://docs.python.org/library/curses.html
Terminal resize event will result in the curses.KEY_RESIZE
key code. Therefore you can handle terminal resize as part of a standard main loop in a curses program, waiting for input with getch
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With