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=LHIzYegMdeGdXoqJFTio3qoeKSaO3MmI8L3wSgyXpWWSV1HIxrsOe
	ucRhY3oIiizvee87MqIBCssUC7v5loq/LaSc+VqkaljGrEoSaAQUQOCgFiUzlYIE
	fdQuF6AFGU9r5J1aXpG/1NNOXyZtDTbD8XG3pBl82BVKntqqwYVx94=
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=wE500kGJjWHLCyfyp+e6QiYe5Kc=; b=o11n5sG4oB4wcZ2wfTTnlhtQkrRn
	Tz2XeEttknS653/dSLpEnSJCo8Pbs1Uf7oJeT7FpgE3oM65yeOhQifRRrqt9cZDW
	301VO+2gP8cZ8VGQ1Pu0bwDNB+8xqxnfp2onPHv6QIkGCN0qeZGl8Z9DFU2p0Rlc
	EzQWl8SXZHmQS2Y=
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=-0.4 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: mho-01-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: U2FsdGVkX1/nMfIPw+S55Ymr/nmrWYXN
Date: Sun, 23 Feb 2014 00:41:38 -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: <20140223054137.GA4837@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <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> <20140216172151.GB4830@ednor.casa.cgf.cx> <1199986631.20140217004637@yandex.ru> <20140217000801.GA4947@ednor.casa.cgf.cx>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20140217000801.GA4947@ednor.casa.cgf.cx>
User-Agent: Mutt/1.5.20 (2009-06-14)

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

