Click here to Skip to main content
15,886,725 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am woking with java console, and the output keeps increase and messy. I want to clean console output without termination the program.
Posted
Comments
Richard MacCutchan 13-Jul-14 3:57am    
Do you mean send a command to the console to clear it before writing further messages? You could just write many blank lines.

1 solution

You can clear the console inside Eclipse using the 'Clear' command - it's accessible from the toolbar or the right-click menu...
To clear the console from code try his: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fui%2Fconsole%2Factions%2FClearOutputAction.html[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900