delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/16/19:35:37

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: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 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=-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 AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <811891742.20140217042535@yandex.ru>
To: Christopher Faylor <cygwin AT cygwin DOT com>
Subject: Re: Clearing the buffer after quitting LESS, MAN, VIM etc.
In-Reply-To: <20140217000801.GA4947@ednor.casa.cgf.cx>
References: <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> <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>
MIME-Version: 1.0
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 AT yandex DOT 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

- Raw text -


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