X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Date: Thu, 4 Mar 2010 13:27:03 -0800 From: Gary Johnson To: cygwin AT cygwin DOT com Subject: Re: Odd behavior of mintty with screen Message-ID: <20100304212703.GB11068@KCJs-Computer> Mail-Followup-To: cygwin AT cygwin DOT com References: <20100304084449 DOT GA11828 AT KCJs-Computer> <416096c61003040515v732dc3h490546a8c8d123d3 AT mail DOT gmail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <416096c61003040515v732dc3h490546a8c8d123d3@mail.gmail.com> User-Agent: Mutt/1.4.2.2i X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 2010-03-04, Andy Koppe wrote: > Gary Johnson > > When I execute screen, however, the mintty > > window immediately shrinks from 157x49 to 80x49.  This shrinking > > does not occur if I maximize the mintty window before executing > > screen. > > I've had a quick look, and with TERM=xterm-256color I find that screen > sends the DECCOLM sequence '\e[?3l' for putting a terminal into > 80-column mode. For some reason, this doesn't happen with TERM=xterm, > so there's one workaround. Another would be to find the relevant > setting in the screen terminal. My TERM=xterm-16color when it does that for me. Setting TERM=xterm does fix it. Thanks. I couldn't find anything I recognized as relevant in the screen(1) man page. I played with using the screen termcap command to set the value of Z1, but to no effect. Here is the output of "infocmp -d xterm xterm-16color", FWIW. comparing xterm to xterm-16color. comparing booleans. comparing numbers. colors: 8, 16. ncv: NULL, 32. pairs: 64, 256. comparing strings. setab: '\E[4%p1%dm', '\E[%?%p1%{8}%<%t%p1%'('%+%e%p1%{92}%+%;%dm'. setaf: '\E[3%p1%dm', '\E[%?%p1%{8}%<%t%p1%{30}%+%e%p1%'R'%+%;%dm'. setb: '\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m', '%p1%{8}%/%{6}%*%{4}%+\E[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e%ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m'. setf: '\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m', '%p1%{8}%/%{6}%*%{3}%+\E[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e%ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m'. > But there is an incompatibility with xterm here. Xterm ignores the > DECCOLM sequence by default and provides a separate control sequence > for allowing DECCOLM. I'll implement that for mintty 0.6. Thanks. Thanks also for providing the latest versions of mintty for Cygwin 1.5 on your web site. I haven't migrated all my systems to 1.7 yet. > Thanks for the report. You're welcome. Regards, Gary -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple