This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Odd behavior of mintty with screen


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]