RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1420245 - Unable to handle window resize from snack-based application
Summary: Unable to handle window resize from snack-based application
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: newt
Version: 6.8
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Miroslav Lichvar
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-08 09:44 UTC by Roman Valov
Modified: 2017-02-08 11:59 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1432926 (view as bug list)
Environment:
Last Closed: 2017-02-08 11:59:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
sample code to detect window resize (352 bytes, text/x-python)
2017-02-08 09:44 UTC, Roman Valov
no flags Details

Description Roman Valov 2017-02-08 09:44:17 UTC
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):
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-02-08 11:59:25 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.