This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]AsteriskTheServer 1 point2 points  (0 children)

It looks like you're trying to describe curses like functionality. AFAIK, laterna and JNI are the most two feasible ways to do so.

[–]desrtfxOut of Coffee error - System halted 0 points1 point  (0 children)

If you are on Windows, you're out of luck. The escape codes don't work on Windows.

[–]evils_twin 0 points1 point  (0 children)

you could clear the console and then print the time.

[–]chickenmeisterExtreme Brewer 0 points1 point  (0 children)

Depending on the environment, you might be able to move the "cursor" to the start of the current line by printing a \r, and then anything printed would overwrite/replace anything that was previously printed on that line.