Last Updated: February 25, 2016
·
4.443K
· nikoheikkila

Prevent terminal from resizing in PuTTY

I have several applications running in GNU Screen on a remote machine where I usually SSH to. When attaching screen session with or without -A option the PuTTY terminal window gets awfully small and needs to be resized by hand. Somewhat annoying!

Fortunately, there is a simple solution described here: http://aperiodic.net/screen/appearance

Using PuTTY

In PuTTY go to Terminal > Features and check Disable remote-controlled terminal resizing. Now remote screen will force resizing and you can safely type screen -dr.

What if I'm on OS X and have iTerm2?

In your profile, select the terminal tab, then mark the checkbox Disable session-initiated window resizing."