How to make Putty remember window size/position
I would like Putty (or the OS - WinXP) to remember the size/position of the window. The rows/columns settings only affects the work area, but does not "zoom in". I would like the same effect as I get when I drag the window border and the content of the putty window resizes accordingly.
Solution 1:
When you resize the window in putty, it by default changes the number of rows and columns in the terminal. This is the same thing as setting the rows and columns for the session configuration.
When I change the rows and columns for a session before I start it, I get the same effect as if I'd dragged the window to this size.
Perhaps this isn't your question. Are you remember to save the session? The Putty interface is sorta silly. Load up your saved session, change the columns and rows by clicking "Window" in the tree, then click "Session" in the tree and then "Save". Now whenever you load the session your newly chosen window size will load.
Solution 2:
My solution is more generic and utilizes AutoSizer which allows you to auto position and size any window. However I run into a small(big) problem in that Putty's (I use Kitty personally) windows don't include the running command so AutoSizer can not distinguish between them.
This however can be solved by editing the bash startup script so that it updates the session title on command execution - see my answer here.
Having this setup allows me to have my long running tail
and htop
putty session automatically positioned by AutoSizer on a third monitor when started.
UPDATE:
There appears to be a bug Changing KiTTY Window Title with KiTTY that resets the title on window resize; please add a comment to the thread and say you are having the issue too.
Also when using AutoSizer note it does not 'grab' the right window size when they are snapped so as a work around position them manually to get the right sizes.