delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/04/10/13:13:09

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=bVVavsGHMAc4IvBN
E0G6PIg39qUuSi4E1YYn6/MsP0bGpiFdHLvcS04NFmqmpcP7czlylf8pdcsVLIc0
YMbOqBWodlqXHpzMUyAKToAgMBMSMg9DQ7GK8daQ9UcQL4SYEakFf+eDnABXuPQx
6ouWHF9DFp6ikXKg+o56H4XaJaE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=hHAvAbvcXayqPD2BZahZo5
W72tY=; b=XzEPM/nIiFwdqJbVVkImWN+XZm0FOS/f3oyXiJ2bMk7M98W4L78oLa
yTgAQfGVgzpvTMwVQK4sTCJk3LBgPRR7Gd6wSKamHIo0OY9RkwNP3Zf7QQTV/gWo
zJAlh5IcFulh9x8AEFqRSaYGSK1WqAxUfzMlgRQQiZr8m9HLJ9860=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=10042019, 10.04.2019, screen, HX-Languages-Length:1441
X-HELO: mout.kundenserver.de
Subject: Re: *cause of* screen writing over restored buffer on detach/exit
To: cygwin AT cygwin DOT com
References: <56fced2e-4f98-7bba-136b-5eeded34ce6f AT shaddybaddah DOT name> <6cc3bc5e-2c3c-61a1-8473-8c531faceac7 AT shaddybaddah DOT name> <b0290101-3511-9ffb-91d3-e88afdbe9df1 AT shaddybaddah DOT name> <990saedodb302s3fr7me8j2befc9pdam97 AT 4ax DOT com>
From: Thomas Wolff <towo AT towo DOT net>
Message-ID: <fdbb0b82-f47d-3eb9-ed81-7d6765258b8f@towo.net>
Date: Wed, 10 Apr 2019 19:12:52 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <990saedodb302s3fr7me8j2befc9pdam97@4ax.com>
X-IsSubscribed: yes

Am 10.04.2019 um 17:04 schrieb Andrew Schulman:
> Hi Shaddy. There you go again.
>
>> The reason seems to be that the Debian screen package packages a custom
>> /etc/screenrc that does not include this explicit term capability:
>>
>>
>> #
>> # Do not use xterms alternate window buffer.
>> # This one would not add lines to the scrollback buffer.
>> termcap xterm|xterms|xs ti=\E7\E[?47l
>> terminfo xterm|xterms|xs ti=\E7\E[?47l
>>
>>
>> If I comment these out, my screen issue is resolved.
>>
>> I'm not suggesting this is a problem with Cygwin screen... it is using
>> the upstream settings. In fact, I am not confident to say where the
>> fault lies. Perhaps screen is right to use these sequences, but the
>> xterms used (putty and mintty) aren't doing the right thing?
>                      
> I haven't seen the screen corruption you describe - not sure why. So it's
> hard for me to test the fix. But I did comment out those 2 entries, start a
> new screen, and attach and detach several times, and it doesn't seem to
> cause any harm.
>
> I don't know whose fault the problem is either, but it's probably a
> particularity of Cygwin. So I'm happy to package the fix as long as it
> doesn't create any problems.
screen sends CSI ? 1049l on exit which restores the cursor to the 
position where it was previously saved.
It's the "te" (not ti) terminfo sequence for xterm on cygwin.
Thomas

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019