PuTTY Suspend Patch

I use PuTTY with screen, and I also use the hibernate function of Windows. The problem is that connections timeout, and I have after each resume to close/reopen/resize all of my PuTTY windows.

This patch is a very quick workaround. It handles the Windows Power Message (WM_POWERBROADCAST), and when resuming it duplicates the current session and terminates the old one (waiting for ‘reuse-windows’ item, see below). The attached file contains the piece of code to be inserted somewhere in main select of the WndProc.

PuTTY 0.58 with this patch. (Unofficial)
Patch against 0.58 (to be inserted in window.c / WndProc)
Source Code including this patch.

Patch Code (to be inserted in window.c / WndProc)

 

 

What? – Version 0.53a

This patch is a very quick workaround. It handles the Windows Power Message (WM_POWERBROADCAST), and when resuming it duplicates the current session and terminates the old one (waiting for ‘reuse-windows’ item, see below). The attached file contains the piece of code to be inserted somewhere in main select of the WndProc.

Vote for wish ‘reuse-windows’

The ‘Ability to re-use dead session windows’ in on the wishlist of PuTTY. This would be really great (as with this patch, the screen would be restored within exactly the same window : no need to resize/move the window). So as stated in PuTTY’s page, do vote for this feature !

Patch Code (to be inserted in window.c / WndProc)

 

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close Menu