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: 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 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 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: References: <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> <20140103065626 DOT GB2538 AT ednor DOT casa DOT cgf DOT cx> <20140105234943 DOT GA2524 AT ednor DOT casa DOT cgf DOT cx> <20140129190918 DOT GB2303 AT ednor DOT casa DOT cgf DOT 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 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