As the title says, I am wondering how to delete a newline that is printed to the console, if it is possible.
I have seen the following: How to delete a newline using \b
Except that is about using \b
to delete a new line, and I would just like to know how to do it, using any possible method.
More specifically: If I have
----
- -
----
printed to the console, I would like to know how to delete the last two lines, to have just ----
.
Thanks in advance!
Note: I left out an OS to see if I can get an answer that would work on any OS.