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 To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/