delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/02/18/23:13:10

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
X-Sender: RaLe <rms000205 AT intrerramp DOT com> (Unverified)
X-Mailer: Mozilla 4.0b1 (Win95; I)
Original-To: dougk AT primenet DOT com
Original-CC: GNU-WIN32 <gnu-win32 AT cygnus DOT com>
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

<HTML><BODY>

<DT>dougk AT primenet DOT com wrote:<BR>
&gt;&nbsp;<BR>
&gt; I'm looking for a &quot;clear&quot; command under bash that will clear
the screen in<BR>
&gt; the same way that cls does in a DOS session.&nbsp; All I can think
of at the<BR>
&gt; moment is creating a function that echo's the ANSI clear screen control<BR>
&gt; sequence, but would rather not make ansi.sys a requirement for this<BR>
&gt; application.<BR>
&gt;&nbsp;<BR>
&gt; Anyone tackle this problem already?<BR>
&gt;&nbsp;<BR>
&gt; Doug<BR>
&gt;&nbsp;<BR>
&gt; --<BR>
&gt; -----------------------------------------------------------<BR>
&gt; dougk AT primenet DOT com<BR>
&gt; -----------------------------------------------------------<BR>
&gt;&nbsp;<BR>
&gt; -<BR>
&gt; For help on using this list, send a message to<BR>
&gt; &quot;gnu-win32-request AT cygnus DOT com&quot; with one line of text: &quot;help&quot;.<BR>
<BR></DT>

<DT>&nbsp;</DT>

<DT>The way i found to clear the screen is add an alias to the .bashrc&nbsp;simillar
to:</DT>

<DT>alias clear=&quot;command.com /c cls&quot;</DT>

<DT>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.</DT>

</BODY>
</HTML>
------------19A31A174A350--

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

- Raw text -


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