I think you can’t without native code and JNI. Take a look at Java Curses library:
http://sourceforge.net/projects/javacurses/
More Related Contents:
- Java input from console
- How to clear the console?
- JUnit test for System.out.println()
- System.out.println and System.err.println out of order
- What’s a good Java, curses-like, library for terminal applications? [closed]
- System.console() returns null
- java.io.Console support in Eclipse IDE
- How to write console output to a txt file
- Create Java console inside a GUI panel
- Redirect console output to string in Java
- Masking password input from the console : Java
- How can I create table using ASCII in a console?
- Getting Keyboard Input
- Can I find the console width with Java?
- In Java is it possible to re-open System.in after closing it
- Making a log4j console appender use different colors for different threads
- Writing to console and text file
- How can I check if a Java program’s input/output streams are connected to a terminal?
- Java, UTF-8, and Windows console
- How to get carriage return without line feed effect in Eclipse console?
- Default character encoding for java console output
- Java using scanner enter key pressed
- Java: Updating text in the command-line without a new line
- Colorize logs in eclipse console
- How can I return to the start of a line in a console?
- How to align String on console output
- How could I read Java Console Output into a String buffer
- making a jar file for console
- How to clear the console using Java?
- Clear console screen in Java [duplicate]