answersLogoWhite

0

How to clear dos screen in JAVA?

Updated: 8/11/2023
User Avatar

Wiki User

12y ago

Best Answer

I am also finding you can use this: System.out.println("\033");

I have checked it in Eclipse. Please check it in any other compiler/ IDE.

Sorry Doesn't work with my Java 6

Output -

/033

/033 : Your slash is the wrong way around ("\033", not "/033").

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

If you're working straight from the command line, then there's really no normal way to do this. The easiest way is to know how big the displayable window is and simply print out newlines until the whole window is "clear."

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How to clear dos screen in JAVA?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you clear screen in java eclipse?

There is no way to clear the screen inJAVA. It seems that you are a beginner in Javaand just migrated from age old Turbo C.The reason because there is no clear screen is that you will never need it when you develop actual Javaprograms. Have you ever seen an application that clears it screen (apart from DOS based applications).When you develop an application for a client, you do not expect him/her to go through your clumsy console. The console is available only for debugging purposes or for learning the language. When you deploy your application, you always have an interface associated with it (like your own internet browser or any other window).So stop worrying about clearing the screen.Of course, you can still manually clear the screen of text by printing out enough blank lines to run all other text out of the terminal window.Most console windows will start of with about 25 lines of text, so something like the following should do what you want in most cases:for(int i = 0; i < 40; ++i) {System.out.println();}


How do you get out of dos mode?

You have to just write there exit keyword.And if you have maxize screen of dos then u have to press alt+enter. Pooja


What exactly does chat sin java mean?

It is unclear what the questioner is looking for. Chats in Java may refer to web forums which are dedicated to those users interested in Java. No clear translation for 'chat sin java' has been found.


What is java console?

The Java console is a display of output sent by a Java program. This is similar to the MS DOS operating system.To print to the console, a programmer will type "println(text);" or "print(text);" depending is the programmer wants to make a new line after the text(println) or not(print).


In Linux platform which c function is used to clear a screen?

use system("clear"); eg: main() { system("clear"); }

Related questions

What is the DOS command applet?

There is nothing called DOS applet.. You can run Java applet from DOS..


What does the command CLS do in MS-DOS?

The command CLS clears the screen and resets the location of the command prompt to the top of the screen. This is similar to the Unix command clear.


Which of following is not computer hardware keyboard DOS Screen Modem?

DOS


What are the difference DOS command?

1) Type "date" + enter = display the date commend 2) Type "clr" + enter = clear the screen commend


What is the command to clear the screen?

clear


When moving the laptop screen up and down more and more lines on screen?

no it dos not


How do you get the DOS screen up?

In Windows, to bring up the DOS screen, simply go to the start menu, choose RUN, and enter CMD. You can also access the DOS screen from Windows during startup by hitting F8 during the boot process and choosing COMMAND PROMPT.


Do the clear screen protectors eventually damage the Nintendo DS screen?

No, in fact, the clear screen protectors help to prevent damage to the Nintendo DS screen.


How do you clear screen in java eclipse?

There is no way to clear the screen inJAVA. It seems that you are a beginner in Javaand just migrated from age old Turbo C.The reason because there is no clear screen is that you will never need it when you develop actual Javaprograms. Have you ever seen an application that clears it screen (apart from DOS based applications).When you develop an application for a client, you do not expect him/her to go through your clumsy console. The console is available only for debugging purposes or for learning the language. When you deploy your application, you always have an interface associated with it (like your own internet browser or any other window).So stop worrying about clearing the screen.Of course, you can still manually clear the screen of text by printing out enough blank lines to run all other text out of the terminal window.Most console windows will start of with about 25 lines of text, so something like the following should do what you want in most cases:for(int i = 0; i < 40; ++i) {System.out.println();}


Why you are using clrscr in c language?

Function 'clrscr' is not part of the C language. Or the standard libraries. It is MS-DOS specific function, use the help for details (clrscr means clear the screen).


What are the feauture's of a flat screen monitor?

the screen is not clear


What is the command to clear thecommand window screen?

clear