delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/12/08:35:06

X-Recipient: archive-cygwin AT delorie DOT 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 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
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 AT cygwin DOT com
From: Dawid Ferenczy <ferenczy AT volny DOT 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 DOT 20131231T025559-913 AT post DOT gmane DOT org> <8545c95dp8ns21seorjf67o4eueglcarsk AT 4ax DOT com> <20131231185859 DOT GA4460 AT ednor DOT casa DOT cgf DOT cx> <20131231222904 DOT GA5441 AT ednor DOT casa DOT cgf DOT cx> <loom DOT 20140103T011837-791 AT post DOT gmane DOT org> <20140103065626 DOT GB2538 AT ednor DOT casa DOT cgf DOT cx> <loom DOT 20140104T042813-236 AT post DOT gmane DOT org> <CAM9pMnOF4JVzWjSoMKc2bhTd3ApS5BkHW10W+5MFq9LVxPrxrA AT mail DOT gmail DOT com> <20140105234943 DOT GA2524 AT ednor DOT casa DOT cgf DOT cx> <loom DOT 20140129T182024-324 AT post DOT gmane DOT org> <20140129190918 DOT GB2303 AT ednor DOT casa DOT cgf DOT cx>
Mime-Version: 1.0
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

- Raw text -


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