This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Clearing the buffer after quitting LESS, MAN, VIM etc.
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 23 Feb 2014 00:41:38 -0500
- Subject: Re: Clearing the buffer after quitting LESS, MAN, VIM etc.
- Authentication-results: sourceware.org; auth=none
- References: <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> <loom dot 20140212T140130-348 at post dot gmane dot org> <20140216172151 dot GB4830 at ednor dot casa dot cgf dot cx> <1199986631 dot 20140217004637 at yandex dot ru> <20140217000801 dot GA4947 at ednor dot casa dot cgf dot cx>
- Reply-to: cygwin at cygwin dot com
On Sun, Feb 16, 2014 at 07:08:01PM -0500, Christopher Faylor wrote:
>On Mon, Feb 17, 2014 at 12:46:37AM +0400, Andrey Repin wrote:
>>Greetings, Christopher Faylor!
>>> 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.
>>
>>I don't have any expertise in trickyness of this task, but I know application,
>>that does exactly this.
>>Far manager shrink console output buffer to console window size by default,
>>when starting up.
>>The file you're looking for is
>>http://farmanager.googlecode.com/svn/trunk/unicode_far/console.cpp
>
>I wasn't implying that I don't know how to do it. It is tricky to get
>right for Cygwin.
So, I did go ahead and implement this in Cygwin by switching console
buffers. It works great in a cmd window but not at all in a TCMD
<http://jpsoft.com/> window. I have used jpsoftware products for longer
than I've been working on Cygwin so that's personally a bad bug for me.
I'm trying to file a bug report but I wonder if this will cause a
problem for other console programs if it doesn't work for a popular
commercial product.
--
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