Created attachment 1248570 [details]
sample code to detect window resize
Description of problem:
I've written snack-based application to be run on RHEL6 server using Python Snack library. Now I've get claims from our testers that application doesn't handle screen resize. I've check newt source code and found it's assumed to send NEWT_KEY_RESIZE (0x8000 + 113) to application on window resize. But it doesn't happen.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Open Gnome Terminal.
2. Connect using ssh to RHEL6 server.
3. Run attached win.py on server.
4. Resize terminal window.
Script exits with 'WINCH' printed.
I've tried to reproduce this problem using Gnome Terminal 3.22.0 and by default my TERM set to `xterm-256color`. Our testers use PuTTY with TERM set to `xterm`.
There is a special key defined for resize of the screen, but it's not supported as a hotkey in forms. Instead, the form itself tries to refresh the screen when SIGWINCH is detected. Adding resize as a hotkey to a form is an interesting idea. as it would allow the application to better handle the resize.
However, this is unlikely to be added in RHEL6 as it already entered Production Phase 2. If you think this is a critical issue please contact the support and ask that this BZ is re-opened.