Programming Forums

Programming Forums (
-   Java (
-   -   How to ClearScreen the Cmd (

exception Feb 28th, 2009 11:47 AM

How to ClearScreen the Cmd
can anyone give me a clue?

Sorrofix Feb 28th, 2009 1:23 PM

Re: How to ClearScreen the Cmd
Java doesn't have a standard function for clearing the screen (much like C), so you have several options: clear it with a lot of newlines, call a system program to clear it (such as "clear" or "cls"), or use a special library such as ncurses.

Keep in mind that many users find clearing the screen rude, though, since it's really not your business to clean up their console. How do you know that they don't have important reference data on screen only to be wiped by some programmer who thought it would look "cleaner" that way?

All times are GMT -5. The time now is 6:04 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC