From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 67225 invoked by alias); 10 Apr 2019 17:12:58 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 67001 invoked by uid 89); 10 Apr 2019 17:12:58 -0000 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 Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.133) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 10 Apr 2019 17:12:56 +0000 Received: from [192.168.178.45] ([95.91.209.162]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N3KgE-1gnUpg1mbq-010J78 for ; Wed, 10 Apr 2019 19:12:54 +0200 Subject: Re: *cause of* screen writing over restored buffer on detach/exit To: cygwin@cygwin.com References: <56fced2e-4f98-7bba-136b-5eeded34ce6f@shaddybaddah.name> <6cc3bc5e-2c3c-61a1-8473-8c531faceac7@shaddybaddah.name> <990saedodb302s3fr7me8j2befc9pdam97@4ax.com> From: Thomas Wolff Message-ID: Date: Wed, 10 Apr 2019 17:12:00 -0000 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> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-04/txt/msg00083.txt.bz2 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