delorie.com/archives/browse.cgi | search |
Date: | Sun, 30 May 1999 15:49:32 +0300 (IDT) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
X-Sender: | eliz AT is |
To: | Kieran Farrell <kezman AT bigfoot DOT com> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: C amateur want to know how to clear a text screen. |
In-Reply-To: | <3750a551.95097825@news.pasteur.dialix.com.au> |
Message-ID: | <Pine.SUN.3.91.990530154503.28125A-100000@is> |
MIME-Version: | 1.0 |
Reply-To: | djgpp AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
On Sun, 30 May 1999, Kieran Farrell wrote: > system( "cls" ); Beware: system() calls the shell for such commands, and unless your shell is the stock COMMAND.COM, the above will produce little more than an error message. Depending upon the shell is hardly a portable way of doing things. People who need to write portable programs that clear the screen, should probably opt for a portable package such as Curses, but even that will not always be available with some (most?) Windows compilers.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |