how to clear screen ??

Edward A. Falk falconer@best.com
Thu Dec 2 11:43:00 GMT 1999


In article < 38444023_1@news2.prserv.net >, Pete Mullins <pmullin@ibm.net> wrote:
>
>Martijn <nobody@nowhere.org> wrote in message
> news: 820mu3$qv5v$1@reader3.wxs.nl ...
>> Hello everyone,
>>
>> I'm a gcc newbe
>> As in the subject: What is the command (or perhaps: trick) to clear your
>> screen while running gcc in your terminal-mode?
>>
>
>The vt200 code is: esc [ 2 j   (no spaces)

Very bad practice unless you know for a fact that the program will
*never* be run on anything but vt200-compatible terminals.

Right way to do this is to learn to use libtermcap.  Easy way to
do this is to call system("clear") as another poster has suggested.

--
-ed falk, falk@falconer.vip.best.com	    *********************#*************#
See http://www.rahul.net/falk/whatToDo.html *#**************F******!******!*!!**
and read 12 Simple Things You Can Do	    ********!***************************
to Save the Internet			    #****#******#*********!**WW*W**W


More information about the Gcc-help mailing list