X-Recipient: archive-cygwin@delorie.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:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=RMSXyj9o6gt88p+CgrFt1Koy6Nmtrd5exjqsr1OT9FGYWSeKH6bKu
	Xs8LiBqtBVx8RSOsz7Df12Boqu3HYJ0AZVRmy78CIKPgjouz17RTXDCA+YjbQLP2
	1FOdKMV0eYvO4XbtY+HAXDkxeq8oYASUHZftXhN6zkvs+aGxpQ8FfU=
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:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=UQhnS1V/PzdvKt8LjImh4rRhk4c=; b=n0XgtJtO6WJIRhrZhdIxqnGyOHJ6
	Rk/R0MYIML+fuv762pejOI+weUxRRLqjl6f6rw3LR+sF3sjB60fzRISmfniw2tsO
	JdTwPe09JMjG2FbAYoVcwQh4rFFSVdI1fZFqukX21QMdZBu+Mr+eJfHmMnks343t
	bT5Natbq98ywtFM=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: mho-02-ewr.mailhop.org
X-Mail-Handler: Dyn Standard SMTP by Dyn
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX18+3h/2H8H+DjufJFzs3/zx
Date: Sun, 16 Feb 2014 12:21:51 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Clearing the buffer after quitting LESS, MAN, VIM etc.
Message-ID: <20140216172151.GB4830@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20131231185859.GA4460@ednor.casa.cgf.cx> <20131231222904.GA5441@ednor.casa.cgf.cx> <loom.20140103T011837-791@post.gmane.org> <20140103065626.GB2538@ednor.casa.cgf.cx> <loom.20140104T042813-236@post.gmane.org> <CAM9pMnOF4JVzWjSoMKc2bhTd3ApS5BkHW10W+5MFq9LVxPrxrA@mail.gmail.com> <20140105234943.GA2524@ednor.casa.cgf.cx> <loom.20140129T182024-324@post.gmane.org> <20140129190918.GB2303@ednor.casa.cgf.cx> <loom.20140212T140130-348@post.gmane.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <loom.20140212T140130-348@post.gmane.org>
User-Agent: Mutt/1.5.20 (2009-06-14)

On Wed, Feb 12, 2014 at 01:33:19PM +0000, Dawid Ferenczy wrote:
>I'm working with CLI having long scrollback buffer. I need to read 
>something a couple of pages back, so I scroll back in the buffer. Then I 
>clear the screen with CTRL + L. Screen is already cleared, but only the 
>visible screen in the middle of scrollback buffer. When content fulfills 
>the whole screen and it starts to scroll, the new output is mixed with 
>previous buffer content. Also scrollback buffer is now messed.
>
>I think, that clearing of the screen with CTRL + L should work as in the 
>Linux terminal (e.g. Gnome Terminal). When I press CTRL + L in the middle 
>of scrollback buffer, it just jumps to the end of scrollback buffer. 

Getting that kind of functionality in the Windows console is tricky but
I think it should be there in the latest snapshot.  I also fixed some
problems with some of the escape sequences that scroll the screen.

There is still one more difference between Cygwin and, e.g., xterm
though.  The scroll buffer is still there when you enter a full screen
session like vim or less.  So you can scroll up to it and really cause
confusion.  It's possible to fix that behavior but it would be really
tricky.  I'm not sure I want to complicate the console handling code
for this one corner case.

The new behavior is in the latest snapshot.

http://cygwin.com/snapshots/

cgf

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

