- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: xwindows resizing
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 02:41 AM
04-21-2004 02:41 AM
xwindows resizing
I open up an 80x24 HPTERM. If I change the x-window size, the columns and rows remain 80x24.
I checked with a co-worker, and his stty settings change automatically when he maximizes his hpterms. In my research, I found a "resize" command that will fix the problem, but how do I get the stty columns and rows to change automatically when I resize an hpterm.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 03:07 AM
04-21-2004 03:07 AM
Re: xwindows resizing
When I resize my xterm, the values displayed by tty are different, but I need to issue a stty cols 163 if I don't want to get an error using vi for instance like ":Terminal too wide".
Is that waht you're talking about ?
Nicolas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 03:19 AM
04-21-2004 03:19 AM
Re: xwindows resizing
I have my root background menu setup to open up an HPTERM and telnet to various UNIX servers. The HPTERM window is 80x24. If I 'view' a file (ie. syslog) with long lines, I used to simply vi the file, then maximize my HPTERM window to minimize wraparound. It seems that now after I maximize the window, vi still thinks the display is 80x24 (scrolling up and down the file yields a gobbled display). 'stty -a' shows that the columns/rows are 80x24.
Looks like the 'resize' command will fix the problem after I maximize the window, but I used to not have to issue any command. In other words, the columns/rows would automatically change upon maximizing the window.
Hope this helps.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 04:49 AM
04-21-2004 04:49 AM
Re: xwindows resizing
In Xwindows, it gets more complicated because the window itself may be on another computer (as in running a PC with an Xwindow emulator). When you run hpterm (a modern version), resizing the window will generate the SIGWINCH signal to the current process (typically a shell) and the size variables will be updated. The problem is probably due to stating hpterm on your local workstation (which should update LINES/COLUMNS automatically in your local shell), then telnet'ing to another machine which may not support the SIGWINCH subcodes in their telnet daemon.
If the remote system has an xterm, run that on the remote machine to display back to your screen, then check LINES and COLUMNS after resizing this remote window. If that doesn't work, the remote machine apparently does not support the SIGWINCH signal even locally. If it does work, then just the telnet daemon on the remote machine is missing support for SIGWINCH (called NAWS in RFC 1073 -- NAWS = Negotiate About Window Size).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 06:39 AM
04-21-2004 06:39 AM
Re: xwindows resizing
I did not think your response applied since these are all HPUX servers that I am telneting to, running 11.0 and up. The workstation is also running HPUX 11.0. However, I followed your recommendations, and while checking the various LINES, COLUMNS, and stty settings, here's what I noticed: I only have this issue when I'm logged in as root using the Symark "pbrun" command (similar to sudo), which is most of the time. I normally telnet using my own account, then get root access via "pbrun". After that, I have the problem. If I "su -",
its fine (I'm sure I'll get a nasty-gram from Internal Security for using "su").
Unless anyone has any further insight, I guess I'll have to take this up with the Symark folks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 06:45 AM
04-21-2004 06:45 AM
Re: xwindows resizing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 01:16 PM
04-22-2004 01:16 PM
Re: xwindows resizing
Bill Hassell, sysadmin