• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 231
  • Last Modified:

clear screen

is their a method for clearing current output in dos window?
0
BobtheBuidler
Asked:
BobtheBuidler
1 Solution
 
petmagdyCommented:
c:\cls
0
 
sigmaconCommented:
cls

( I am assuming you'r asking for the case that you yourself are on the command line. If this is a java scpecific question, you need to be more specific, like what kind of output you want to clean from where .... )
0
 
CEHJCommented:
If you mean programmatically and on Windows then practicably you can't AFAIK
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
BobtheBuidlerAuthor Commented:
K, well, heres the point of it.

Im using java and im testing alot of data, need to view alot of output. want to clean it up. basically im asking if theres a way to clear all past output using java code, to where the new output is starting on a clean slate so to say. does java support this or is their a way to do it?
0
 
BobtheBuidlerAuthor Commented:
pardon the previous vagueness, just registered on site. :) very cool.
0
 
sigmaconCommented:
Just print a new line to the screen 25 times (or how often you want it).

for(int i = 0; i < 30; i++) {
   System.out.println("");
}
0
 
GrandSchtroumpfCommented:
> need to view alot of output.
you can redirect the output to a file, and view the file in a good text editor such as SciTE (free open source).
0
 
BobtheBuidlerAuthor Commented:
Thx guys.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now