delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/10/09:25:49

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: clear screen in bash ?
Date: Mon, 10 Jan 2000 12:23:42 +0200
Organization: NetVision Israel
Lines: 24
Message-ID: <Pine.SUN.3.91.1000110122325.6643H-100000@is>
References: <851meg$4h AT cs DOT vu DOT nl> <Pine DOT SUN DOT 3 DOT 91 DOT 1000109092558 DOT 23866M-100000 AT is> <9g5h7ssb3sghlqvp4qd2drcvsiq73eic2q AT 4ax DOT com>
NNTP-Posting-Host: is.elta.co.il
Mime-Version: 1.0
X-Trace: news.netvision.net.il 947500022 5332 199.203.121.2 (10 Jan 2000 10:27:02 GMT)
X-Complaints-To: abuse AT netvision DOT net DOT il
NNTP-Posting-Date: 10 Jan 2000 10:27:02 GMT
X-Sender: eliz AT is
In-Reply-To: <9g5h7ssb3sghlqvp4qd2drcvsiq73eic2q@4ax.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 9 Jan 2000, Damian Yerrick wrote:

> >> alias cls='command.com /c cls'
> >
> >Or just write a simple DJGPP program `cls.exe' that calls `clrscr'.
> 
> Wouldn't that be a waste? DJGPP has to switch into protected mode.

When Bash is your interactive shell, you are in protected mode
already, even when you are sitting at the prompt.

> It would be much more efficient CPU-and disk-wise to write it in
> Borland C++.

I try not to advise people to use proprietary tools.  If they want a
tiny 16-bit program, they can always use djasm.

> The "hello world is huge" topic has been discussed here
> many times.

I fail to see how the size is relevant here.  You launch much larger
programs in Bash for almost anything, even "dir".  Why should another
40K worth of an .exe file matter?

- Raw text -


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