delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <49BC5BB0.8020707@veritech.com> |
References: | <49BC5BB0 DOT 8020707 AT veritech DOT com> |
Date: | Sun, 15 Mar 2009 07:15:35 +0000 |
Message-ID: | <416096c60903150015n62f9b16aj80b64a2d3fc94a20@mail.gmail.com> |
Subject: | Re: clearing the scrollback buffer in mintty |
From: | Andy Koppe <andy DOT koppe AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
Lee said: >> For gui consoles, use > >> =A0alias cls=3D'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=3D'echo -e "\ec\e[3J"' Andy -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |