Is it possible to recall a println in Java?

command-line-interface, java

Solution

You could echo the `\b` escape sequence, which is backspace, and then write out a new message, in place of the old-one.

Do note, this might not be completely cross-platform, as it is upto the console itself and how it interprets `\b`, but it should work mostly.

Problem

Say I am making a command-line interface. I want to print out a string, and then change it. For example, when you run the program, it prints out ``` Hello, World! ``` A few seconds later, though, the message gets changed to: ``` Hello, Computer User! ``` Is this possible? Cross-OS would be preferable.

Original source

Related problems