X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,SPF_NEUTRAL,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4FF58873.1000009@cornell.edu> Date: Thu, 05 Jul 2012 08:28:35 -0400 From: Ken Brown User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Linefeed without carriage return after quitting vim References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-CORNELL-SPAM-CHECKED: Pawpaw X-Original-Sender: kbrown AT cornell DOT edu - Thu Jul 5 08:29:01 2012 X-PMX-CORNELL-REASON: CU_White_List_Override X-IsSubscribed: yes 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 On 7/5/2012 1:44 AM, Sumudu Fernando wrote: > Using the latest cygwin DLL (1.7.15-1) I am routinely encountering a > strange issue when quitting vim. This only occurs if I have used ^Z > to suspend vim, restored it with fg, and later quit. IOW things work > normally if I never suspend vim. > > A problematic session looks something like: > -------- > [~]$ vim > > [1]+ Stopped vim > [~]$ fg > vim > [~]$ > -------- > > The problem is evident in the last two lines which should be flush > with the left margin. For comparison, substituing 'less' for 'vim': > -------- > [~]$ less /Cygwin.bat > > [1]+ Stopped less -r /Cygwin.bat > [~]$ fg > less -r /Cygwin.bat > [~]$ > -------- > > The terminal behaves normally so it doesn't seem like any settings get > corrupted (pressing enter gives me a properly-aligned prompt). > Currently, stty just outputs: > > speed 38400 baud; line = 0; > > but I have tried various settings of the newline / CR translations to no avail. > > Interestingly, the "info" program exhibits the same behaviour. I > thought maybe it would affect other "fullscreen" programs like "less" > or "man", but I couldn't reproduce it with those two (as shown above). > > Any ideas what could be causing this / how to further diagnose? It's > not a killer but it certainly looks weird. This used to happen with > older cygwin dll's but IIRC it was never so reliably reproducible. I don't know the cause, but I often find that 'stty sane' fixes this kind of problem. Ken -- 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