putty+ssh+screen = auto resizing?

Andrew McGlashan <andrew.mcglashan-eCNwZfdMfp8leAitJ8REmSkBLnlaf3ui@public.gmane.org>
Newsgroups gmane.comp.gnu.screen.user
Organization Affinity Vision Australia Pty Ltd
Message-ID <[email protected]>
Hi,

I just come across this problem.

And I've worked out the solution.

In my case, a putty session that worked perfectly has TERM set as xterm
and ones that gave the resize issue were xterm-color ... that was the
only difference in the setups.

So, I worked on this and found that all I needed to do was adjust
/etc/screenrc as follows.

old line:
termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'

new line (added * character)
termcapinfo xterm* 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'


Leading to this discovery, I tried changing TERM from xterm-color to
xterm and the desired behaviour took place; then I worked through
screenrc settings as necessary to get the "good" solution for this problem.

Cheers

-- 
Kind Regards
AndrewM

Andrew McGlashan
Broadband Solutions now including VoIP

Current Land Line No: 03 9912 0504
Mobile: 04 2574 1827 Fax: 03 9012 2178

National No: 1300 85 3804

Affinity Vision Australia Pty Ltd
http://www.affinityvision.com.au
http://adsl2choice.net.au

In Case of Emergency --  http://www.affinityvision.com.au/ice.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.