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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=rHXSwefF41lf3K2KExVlvF9BpU7tfXy+UEryD6RNKr2Sdw6z9GEw+ mIukT8B9CMMh0syY45LbmXMM1gOpWgtzyJrgjkPdnEfuODzb9uLJ0FP7gqQxUKSN PZx8u3eeKT+3tvOOo1l/gKXrXpFhZJ8l1qKM2fOYxm4V+2OAe33hI4= 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=XsjE3ll7739OMyAC6cmv1YGSEws=; b=YbHogKSJ1fMYb4LBKsD0YhH5z2Jl 5wSVkHXNIKEJThqBfFjqJJOJullvl0U2yBMQ0PJTbd690s7TROnANGogsqAzLdSf DtzfLejLh3k2mlpeSBSEGLEHoAO4SNSwY6nCbKEBVKKR53sk4RRQOm9TxCSFEGvD uwxkFjJbjytXlhE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_50 autolearn=ham version=3.3.1 spammy=shaddy, Shaddy, xterm, screenrc X-HELO: blaine.gmane.org To: cygwin AT cygwin DOT com From: Andrew Schulman Subject: Re: *cause of* screen writing over restored buffer on detach/exit Date: Wed, 10 Apr 2019 11:04:01 -0400 Message-ID: <990saedodb302s3fr7me8j2befc9pdam97@4ax.com> References: <56fced2e-4f98-7bba-136b-5eeded34ce6f AT shaddybaddah DOT name> <6cc3bc5e-2c3c-61a1-8473-8c531faceac7 AT shaddybaddah DOT name> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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. So I'll upload a test release, to see if we can get some other people to test. 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