Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 28th, 2009, 10:47 AM   #1
exception
Software & Web Developer
 
exception's Avatar
 
Join Date: Oct 2008
Location: Philippines
Posts: 173
Rep Power: 7 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, 12:23 PM   #2
Sorrofix
Expert Bug Developer
 
Sorrofix's Avatar
 
Join Date: Apr 2008
Location: Canada
Posts: 56
Rep Power: 7 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 12:30 PM. Reason: Oh, I'm sorry, I thought this was C :o
Sorrofix is offline   Reply With Quote
Reply

Bookmarks

« 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 11:32 AM
Sim8086 Vb Programmer Assembly 0 Mar 12th, 2008 3:03 PM
ftplib help please! disAbled Python 1 Jun 30th, 2005 8:05 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:14 AM.

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