From: rms000205 AT intrerramp DOT com (RaLe) Subject: Re: bash and the missing clear command 18 Feb 1997 23:13:10 -0800 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <330A9EBE.7A4.cygnus.gnu-win32@intrerramp.com> References: <199702181525 DOT IAA11199 AT primenet DOT com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----------19A31A174A350" X-Sender: RaLe (Unverified) X-Mailer: Mozilla 4.0b1 (Win95; I) Original-To: dougk AT primenet DOT com Original-CC: GNU-WIN32 X-Priority: Normal Original-Sender: owner-gnu-win32 AT cygnus DOT com ------------19A31A174A350 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii dougk AT primenet DOT com wrote: > > I'm looking for a "clear" command under bash that will clear the screen in > the same way that cls does in a DOS session. All I can think of at the > moment is creating a function that echo's the ANSI clear screen control > sequence, but would rather not make ansi.sys a requirement for this > application. > > Anyone tackle this problem already? > > Doug > > -- > ----------------------------------------------------------- > dougk AT primenet DOT com > ----------------------------------------------------------- > > - > For help on using this list, send a message to > "gnu-win32-request AT cygnus DOT com" with one line of text: "help". The way i found to clear the screen is add an alias to the ..bashrc simillar to: alias clear="command.com /c cls" this seems to work fine under win95 as long as command.com is in your PATH, however i'm not shure how you would do it under NT. ------------19A31A174A350 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii
dougk AT primenet DOT com wrote:

> I'm looking for a "clear" command under bash that will clear the screen in
> the same way that cls does in a DOS session.  All I can think of at the
> moment is creating a function that echo's the ANSI clear screen control
> sequence, but would rather not make ansi.sys a requirement for this
> application.

> Anyone tackle this problem already?

> Doug

> --
> -----------------------------------------------------------
> dougk AT primenet DOT com
> -----------------------------------------------------------

> -
> For help on using this list, send a message to
> "gnu-win32-request AT cygnus DOT com" with one line of text: "help".

 
The way i found to clear the screen is add an alias to the .bashrc simillar to:
alias clear="command.com /c cls"
this seems to work fine under win95 as long as command.com is in your PATH, however i'm not shure how you would do it under NT.
------------19A31A174A350-- - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".