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:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=QH9hHnS46kSqvkub
	i3kC4mV/aQxdOiDJxy5UmT5i2MkLp7Fm74t+81onM6kgnTQNOT0JZ2ebNb7tlGJo
	lcMf9ES2Eg8cIaxB8R5K4NYwiKNwpMV4EMjBY2CZEaS3ujz9E0Y/Wn3tMW+PFfhU
	kgWsRmIBEDJYXIToUOveaXzx81w=
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:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=Zw8kM63uyuI4I7FblJwmrE
	g7i2A=; b=ARWwbGWJUEwQ2hSPNuc3iqPPcFCQjs2Jsw9vh2Xrcu5Qs2h++YHJ56
	qAORgSNwIISjIqIB1mxmL1EGWZVJ7yJDclrc5EhWX/8y17Tkih2oOslqdeunCdk9
	AzmiE6i43Ji+P39ixZTSF/nusOOdxUKQRlVmlmB/tSTXp75zXVrdc=
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=-3.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtpback.ht-systems.ru
Date: Mon, 17 Feb 2014 04:25:35 +0400
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <811891742.20140217042535@yandex.ru>
To: Christopher Faylor <cygwin@cygwin.com>
Subject: Re: Clearing the buffer after quitting LESS, MAN, VIM etc.
In-Reply-To: <20140217000801.GA4947@ednor.casa.cgf.cx>
References: <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> <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-Transfer-Encoding: 7bit
X-IsSubscribed: yes

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.

Ahha, makes sense. Thought that since you are recording console buffer
already, this should be kind of trivial to flip console buffer size back and
forth without loosing content, but I can imagine, what a mess it could become
when additional restrictions apply, been working with NT console myself in the
past. 


--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 17.02.2014, <04:23>

Sorry for my terrible english...


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

