delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/14/11:49:48

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49BBE008.8000602@veritech.com>
Date: Sat, 14 Mar 2009 12:49:12 -0400
From: "Lee D. Rothstein" <l1ee057 AT veritech 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 Cygwin console
References: <gpft5l$8b7$1 AT ger DOT gmane DOT org> <416096c60903140238o2e7b3f2dy707686184a9c6153 AT mail DOT gmail DOT com>
In-Reply-To: <416096c60903140238o2e7b3f2dy707686184a9c6153@mail.gmail.com>
X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.0.1
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:
>> on Linux/UNIX systems with the command 'clear' the console content usually
>> can be "flushed", on Windows with 'cls'.
>> None of these commands worked with Cygwin. If I enter 'clear', the message
>>  bash: clear: command not found
>> is returned.
>>
>> How can a console used with Cygwin be cleared?
>>     
>
> Ctrl+L. Works in all terminals.
>
>   

clear.exe is available in the ncurses package.

As Andy said ^-l works.

However, with both clear and ^-l, the scroll buffer is not cleared which 
makes it use with text-based debugging
rather limited. That's one reason the alternate screen option on 'rxvt', 
and 'xterm' is useful.


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