delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/16/00:44:45

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49BDE741.2050808@veritech.com>
Date: Mon, 16 Mar 2009 01:44:33 -0400
From: "Lee D.Rothstein" <lee AT veritech DOT com>
Reply-To: Cygwin Tech List <cygwin AT cygwin DOT com>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: clearing the scrollback buffer in mintty
References: <49BC5BB0 DOT 8020707 AT veritech DOT com> <416096c60903150015n62f9b16aj80b64a2d3fc94a20 AT mail DOT gmail DOT com>
In-Reply-To: <416096c60903150015n62f9b16aj80b64a2d3fc94a20@mail.gmail.com>
X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.0.1
X-IsSubscribed: yes
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

Andy Koppe wrote:
> Lee said:
>   
>>> For gui consoles, use
>>>       
>>>  alias cls='echo -e "\033c"'
>>>       
>>> which does clear the scrollback buffer.
>>>       
>> Thanks Dave, this works on 'xterm' but not on 'mintty'.
>>
>> On 'mintty' it does a 'clear' (i.e., clears the screen),
>> rather than a 'cls' (i.e., clears the screen and
>> scrollback buffer).
>>     
>
> Thanks Lee. I entered issue 65 for this. Looks like PuTTY took a
> different view from xterm as to whether the "Full Reset (RIS)"
> sequence should clear the scrollback, but of course MinTTY is meant to
> be compatible with xterm.
>
> Meanwhile, this will do the reset and clear the scrollback:
>
>   alias cls='echo -e "\ec\e[3J"'
>
>   
This works fine even from a batch file. Thanks. And also works with 'xterm'.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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