PuTTY wish resize-altscr

This is a mirror. Follow this link to find the primary PuTTY web site.

Home | FAQ | Feedback | Licence | Updates | Mirrors | Keys | Links | Team
Download: Stable · Snapshot | Docs | Changes | Wishlist

summary: Resizing window has nasty effects on alternate screen
class: wish: This is a request for an enhancement.
difficulty: fun: Just needs tuits, and not many of them.
priority: low: We aren't sure whether to fix this or not.
present-in: 2003-01-14
fixed-in: 2003-03-08 e9cc32850132b0ed4bc1279200ef9a432dc8d0f5 (0.54)

Suppose you run a server-side application which switches to the alternate terminal screen. While running this application, you decide you could do with some more vertical space, so you make the window taller. A SIGWINCH is sent to the remote process and it adjusts to the new screen size; no problem there.

Now, when you quit the application and the primary terminal screen is restored, something weird seems to happen. It looks to me as if the previous contents of the primary screen are restored somewhere near the bottom of the now-taller window, while the cursor is restored somewhere near the top.

I'm not entirely sure how this should be handled - for instance, there's an argument in favour of pulling lines out of the scrollback and putting them back into the primary screen, as happens when you resize without the alternate screen active. But certainly it would be a good start for the cursor position to match up to the screen contents!

SGT, 2003-03-07: Just accepted a patch from Richard Boulton which fixes this.


If you want to comment on this web site, see the Feedback page.
Audit trail for this wish.
(last revision of this bug record was at 2016-12-27 11:40:22 +0000)