Mail Archives: djgpp/1997/03/06/00:28:51
>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 -