PuTTY wish resize-altscr


Download: Stable · Snapshot | Docs | Changes | Wishlist

summary: Resizing window has nasty effects on alternate screen
class: wish: This is a request for an enhancement.
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.

Audit trail for this wish.