X-Recipient: archive-cygwin@delorie.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:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; q=dns; s=
	default; b=RQUt7cBLzmU4yRnxoNbEYtVAH5m6JbpW68tZ1EXyYxRbmr6t15fJE
	0ICZ/HDAKX+SmiHqbRofeKu7TWqdL7DlqOkfkrLSO+WF5vNK7gCPqKSyqZDOfzE0
	8ei1RXsG8meqkx62FZTd19qpjWwgjVykXgV6JrrT8c3Hf5k5fWqZz8=
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:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; s=default;
	 bh=QoLcmRbUPOHPJjS6xIvQEyYCXIQ=; b=Bf/P6Hp9mtuIhHViUo1BGBLkp39W
	uAs1x0exUNbvVKG98rcOCPat67Cb+UCfaSfj/k0D1FEXqB7ooJMx85+f7QilZof3
	eS/hQrRXwKyaVUwR4gpVNGQXyvCN7AcHtezQ19Fypxu/M/mtwaE/65aUCHhs14o8
	zVfCtgsU2JMj+eg=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 spammy=H*r:Unknown, screen
X-HELO: blaine.gmane.org
To: cygwin@cygwin.com
From: Andrew Schulman <schulman.andrew@epa.gov>
Subject: Re: *cause of* screen writing over restored buffer on detach/exit
Date: Thu, 11 Apr 2019 08:12:35 -0400
Message-ID: <sjbuae1shfd44i6beomlm5prhkr37hadtf@4ax.com>
References: <56fced2e-4f98-7bba-136b-5eeded34ce6f@shaddybaddah.name> <6cc3bc5e-2c3c-61a1-8473-8c531faceac7@shaddybaddah.name> <b0290101-3511-9ffb-91d3-e88afdbe9df1@shaddybaddah.name> <990saedodb302s3fr7me8j2befc9pdam97@4ax.com> <fdbb0b82-f47d-3eb9-ed81-7d6765258b8f@towo.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
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 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, can you please clarify: Are you suggesting changing ti to te in the
above entries? Or do you have another suggested patch?

Although I'm the screen maintainer, I've never learned the intricacies of
termcapinfo.

Thanks,
Andrew


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

