From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26461 invoked by alias); 19 Jan 2014 21:19:41 -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 26450 invoked by uid 89); 19 Jan 2014 21:19:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sun, 19 Jan 2014 21:19:40 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W4zmI-0005ZT-S9 for cygwin@cygwin.com; Sun, 19 Jan 2014 22:19:34 +0100 Received: from c-69-140-37-22.hsd1.md.comcast.net ([69.140.37.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Jan 2014 22:19:34 +0100 Received: from schulman.andrew by c-69-140-37-22.hsd1.md.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Jan 2014 22:19:34 +0100 To: cygwin@cygwin.com From: Andrew Schulman Subject: Re: Vim under screen screwing up console on close - cygcheck.out (0/1) Date: Sun, 19 Jan 2014 21:19:00 -0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive: encrypt X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00254.txt.bz2 > > > Simplest way to reproduce is this: run 'screen', then run 'vim', then > > > exit with ':q'. My bash prompt is now on the bottom line of my mintty > > > window, but everything I type, and all output after that, stays on the > > > last line, each line overwriting the previous. Using 'clear', or > > > switching to another screen window and back with Ctrl-A commands, > > > fixes the problem. If I run vim without screen, then it restores the > > > previous window contents after vim exits. This always happens with > > > empty files; it sometimes happens when editing other files, but it > > > doesn't always, and I haven't tried it extensively to try to figure > > > out why. > > > > Looks like vim isn't the only problem here, nor is screen. I was able > > to see some other poor behaviour by looking at a man page and then > > searching for a string which didn't exist--whether running 'screen' or > > not. It displayed "Pattern not found" on the bottom line, which > > caused a bunch of lines to be pushed upward by one, leaving much > > duplication and confusion. (I would attach a screenshot here, but the > > mailer-daemon rejected both png and jpg formats. What does it like, > > gif? bmp? tiff?) I believe I'm using 'less' for my pager, and I can > > see the same thing using less. Less, vim, man...wasn't there another > > issue recently that involved those? Maybe I'll try that snapshot and > > see if that helps with this problem at all. > > I also saw this problem yesterday. I was using screen, but not vim - it > happened in a bash session. I don't know what caused it. After a while > I did something to reconfigure the terminal - I can't remember what, but > maybe I killed the shell or screen session - and it cleared up again. I can only reproduce this bug in screen. So far it happens every time if I start screen automatically from .bash_profile, but not if I wait and start it manually from the shell. I can't figure out yet why that would be. The bug happens in x86 and x86_64. I'm attaching my cygcheck.out, from x86_64. I don't see any obvious problems in it. -- 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