> Date: Sat, 16 Jun 2018 18:15:42 +0200
> From: Tomasz Rola <rto...@ceti.pl>
> 
> On Sat, Jun 16, 2018 at 02:50:40PM +0200, Mark Kettenis wrote:
> [...]
> > 
> > To e honest, I find the whole idea of invoking an external program to
> > clear the screen insane.
> 
> Not necesarilly wanting to quarrel about this, but:
> 
> 1. What would you say to someone who wants to run an old sh script
> which employs exactly this method?
> 
> 2. What am I supposed to use instead when I want to clear the screen
> from the inside of newly written sh script, while (hopefully) staying
> compatible with other systems (some of them old and non-upgradeable)?
> 
> The cost of running external program that only knows one thing and
> knows it well is minimal, even more so on modern platforms. Additional
> benefit is having to change only this one program if such a need
> arises in a future.
> 
> Just my cent or two.

You're missing the point here.  Calling /usr/bin/clear to clear the
screen from one of your scripts is fone.  Doing so because you press a
certain key combination while at the shell prompt isn't.

Reply via email to