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:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; q=dns; s=
	default; b=SgCBAR6kfoFdJJlMb7sYWaC2OPatwnuG8dDU+tisL204c8kQo97aP
	ATQRRZNe+SPVskiZbF1zbjY7sJNZkrNyYdJdo0GZez9Dezm4QY/5Wp/xyvsJihUP
	6QeFEdHSfB0HqAPQFTURm0oaJruNlzsNZ2ZlvJ+U+NAjVhecXJsREc=
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:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; s=default;
	 bh=W6ew7A+2m182mhbdXqC6DxKSx4M=; b=BTs7esSI0mvaiDSZCh8U35gYAO4C
	D0ErK/OujbVZzrJVxZAl07iSPYRI33Jh4jEh157wZvF9D67OWZ7eSa8c2iTJQPs+
	wvNHBszmC5EXzi7LAFWFisp85IGPoWRP13bO6EI3RFbrVLbHwuZoWRash4NOvwei
	Td3KV64R6JjgkiQ=
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=2.5 required=5.0 tests=AWL,BAYES_20,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_NONE,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2
X-HELO: plane.gmane.org
To: cygwin@cygwin.com
From: Dawid Ferenczy <ferenczy@volny.cz>
Subject: Re: Clearing the buffer after quitting LESS, MAN, VIM etc.
Date: Wed, 12 Feb 2014 13:33:19 +0000 (UTC)
Lines: 46
Message-ID: <loom.20140212T140130-348@post.gmane.org>
References: <loom.20131231T025559-913@post.gmane.org> <8545c95dp8ns21seorjf67o4eueglcarsk@4ax.com> <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>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Christopher Faylor <cgf-use-the-mailinglist-please <at> cygwin.com> writes:

> You're apparently not using a snapshot.
> 
> cgf


Hi there!

I have discovered one more bug, which seems to be related:

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. 
Nothing is really deleted. This way, the whole scrollback buffer is 
preserved and screen is also cleared. So, clearing the screen doesn't clear 
anything in the fact. It just scrolls the content up until the whole screen 
is blank and prompt is on the first line.

I think, that these bugs result from different philosophy of working with 
buffer from the Linux terminal.

I could live with that, I just have to clear the screen on the end of 
scrollback buffer only.

But messing of scrollback buffer, when I quit e.g. LESS as I described in 
my previous post, is really pain. The buffer is messed so many times, how 
much prompts are on the current screen. When I scroll one page back, screen 
is repainted with buffer only from bottom to the most bottom prompt (that 
means only few lines could be repainted, for example), where the most 
bottom prompt is repainted too. So I scroll one more page back and it 
repeats, but with another most bottom prompt. Until all prompts on the 
current screen are repainted. Then it starts to scroll properly.

Thank you and have a nice day.

--
 Dawid Ferenczy
 http://ferenczy.cz


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

