Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Whenever I reattach to my detached screen (containing Irssi), my Putty screen is resized to something it has been at startup. If I change the window size after this, detach the screen and resize it back, window will be again resized to the original size. By window I mean the Putty window on my windows box. How can I turn this feature off?

Using Windows XP as my local and CentOS 6.0 as the remote OS. Putty 0.61.

share|improve this question

2 Answers 2

up vote 5 down vote accepted

You can also prevent screen from resizing any remote sessions. The other answer prevents this in your one local putty installation - but what if you come to another workstation?

Anyway, to prevent screen from resizing xterms, you need to:

  • Edit /etc/screenrc
  • Find this this bit of text

# Long time I had this in my private screenrc file. But many people
# seem to want it (jw):
# we do not want the width to change to 80 characters on startup:
# on suns, /etc/termcap has :is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:

#termcap xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
#terminfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'

  • Uncomment those two termcap lines and screen will behave from now on.

I just ran into this problem, googled, found the answer here, tested and thought it might be useful for others.

Note that if you are unable or do not want to edit the global screenrc configuration, ~/.screenrc will do just fine for your current user.

share|improve this answer
I'd be tempted to mark this as the accepted answer but it seems I'm unable to test it as the behaviour went away... Have to upvote at least though :) –  eis Aug 18 '12 at 6:38
Yes! managed to test it now and works exactly like described. –  eis Aug 18 '12 at 6:41
glad it worked for ya :) –  Zlatko Aug 18 '12 at 9:49
pmodin's comment on the original site fixed this answer in my case: I had to set it as "xterm*" as my putty configuration uses xterm-color as TERM. –  Mikuz May 22 at 6:05

Found the answer. The feature is called "remote terminal resizing", and it can be disabled at Configuration -> Terminal -> Features -> Disable remote-controlled terminal resizing, as described in PuTTY configuration.

Don't really know why reattaching screen does window resize remote request, though.

share|improve this answer
This worked well for me. I have a termcapinfo line in my .screenrc that forwards the scrollback buffer. I don't understand how the termcapinfo line is parsed and don't want to mess with it. –  Morphit Dec 8 '13 at 17:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.