delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/07/05/01:45:45

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
From: Sumudu Fernando <sumuduf AT gmail DOT com>
Date: Wed, 4 Jul 2012 23:44:28 -0600
Message-ID: <CANi_VVeWB4uppr17osrx7HQfLN0G-rpyFeAD_e1Y09oHfsQupQ@mail.gmail.com>
Subject: Linefeed without carriage return after quitting vim
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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.

Thank you,


                                            -Sumudu Fernando

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019