CLI output staying at the same line
2006-10-25 02:57:53
Sometimes, we need our text mode's program to keep showing the data in a single line without feeding, just like the DOS era compressors (think PkZip).
This is really easy to do with console commands, like the one to come back to the begining of the line without line feeding.
for (int i=0; i<10; i++){
System.out.print("this is line " + i + "\r");
}
System.out.println();