Bug 1432926

Summary: Unable to handle window resize from snack-based application
Product: [Fedora] Fedora Reporter: Miroslav Lichvar <mlichvar>
Component: newtAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mlichvar, reddot.rocks
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: newt-0.52.20-1.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1420245 Environment:
Last Closed: 2017-04-01 17:12:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Miroslav Lichvar 2017-03-16 12:35:46 UTC
+++ This bug was initially created as a clone of Bug #1420245 +++

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):
0.52.11

How reproducible:
100%

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.

Actual results:
Nothing happens.

Expected results:
Script exits with 'WINCH' printed.

Additional info:
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`.

Comment 1 Miroslav Lichvar 2017-03-17 11:37:46 UTC
Support for screen resize as a hotkey in form was added in newt-0.52.20.

Comment 2 Fedora Update System 2017-03-17 11:45:52 UTC
newt-0.52.20-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-8cabee1dba

Comment 3 Fedora Update System 2017-03-17 22:22:59 UTC
newt-0.52.20-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-8cabee1dba

Comment 4 Fedora Update System 2017-04-01 17:12:42 UTC
newt-0.52.20-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.