delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/06/00:28:51

Message-Id: <199703060525.OAA27860@mail.st.rim.or.jp>
From: "Daisuke Aoyama" <jack AT st DOT rim DOT or DOT jp>
To: <djgpp AT delorie DOT com>
Subject: Re: bash script debugging
Date: Thu, 6 Mar 1997 08:59:36 +0900
MIME-Version: 1.0

>Try this.  Create clear.bat somewhere in your path with the only 
>statement being
>
>
>cls
>
>I just tried it on a win95 machine.
>
>bash seems to be smart enough to call on command.com to exec this program.

Also can use alias or shell script instead of batch file.

   alias clear='command.com /c cls'

If you can use ANSI.SYS, following is faster.

   alias clear='echo -en \\033[2J'

For quick action, use `alias c=clear' on interactive shell.

Note: read builtin help for meaning of echo's switches.

Daisuke Aoyama
jack AT st DOT rim DOT or DOT jp

- Raw text -


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