Programming Forums
User Name Password Register

RSS Feed

Thread Tools Display Modes
Old Feb 28th, 2009, 11:47 AM   #1
Software & Web Developer
exception's Avatar
Join Date: Oct 2008
Location: Philippines
Posts: 173
Rep Power: 10 exception is on a distinguished road
Send a message via Yahoo to exception
How to ClearScreen the Cmd

can anyone give me a clue?
|Knowledge alone is not POWER, Applied knowledge is POWER.
exception is offline   Reply With Quote
Old Feb 28th, 2009, 1:23 PM   #2
Expert Bug Developer
Sorrofix's Avatar
Join Date: Apr 2008
Location: Canada
Posts: 56
Rep Power: 10 Sorrofix is on a distinguished road
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?

Last edited by Sorrofix; Feb 28th, 2009 at 1:30 PM. Reason: Oh, I'm sorry, I thought this was C :o
Sorrofix is offline   Reply With Quote


« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cmd crazyguy_6 C# 3 Feb 28th, 2009 12:32 PM
Sim8086 Vb Programmer Assembly 0 Mar 12th, 2008 4:03 PM
ftplib help please! disAbled Python 1 Jun 30th, 2005 9:05 PM

DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:29 PM.

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