🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14857

Re: clear screen in console apps?

#14857
From: Rich Wilkman
Date: Thu, 29 Jul 1999 00:00
35 lines
1613 bytes
Trey:

I can't think of a way with plain Java (as there isn't one way on all
platforms).  I'd look at detecting the platform and using the
appropriate args in a Runtime.exec() call.  Sure beats assuming a
console is 25 lines tall and tossing 25 printns to the screen (as I've
seen *many* students to <g>).

-Rich

Trey Ethridge wrote:
> 
> Hello everyone!
> 
> I am in college and often we have to write simple console applications.
> Usually in C++ I call clrscr()  to do a "cls" in DOS or a "clear" in UNIX.
> How can I do this in Java?
> 
> Thanks,
> Trey Ethridge

-- 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rich Wilkman
Quality Assurance Manager
Borland JBuilder Team

If you see something that looks like an opinion up there,
it's mine and mine alone.

Mail sent to me from the newsgroups won't bounce but will
be ignored.  If I have time, I'll respond, but you  have
a better chance if you confine your posts to the newsgroups
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID: <37A071F9.A4847044@inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7no931$8tf5@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,3dc957e8343b13a4
X-Google-Attributes: gidf74b3,public
From: Rich Wilkman <rwilkman@inprise.com>
Subject: Re: clear screen in console apps?
Date: 1999/07/29
Message-ID: <37A071F9.A4847044@inprise.com>
X-Deja-AN: 506623764
Content-Transfer-Encoding: 7bit
References: <7no931$8tf5@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language