I wrote a command line program that will have a status bar, like wget.
The main problem I encountered: how to delete what I have already sent to stdout / stderr?
I had an idea: use backspace char '\ b' and delete the output I sent. Is this the best way? Is this the only way? Is there a better way?
PS: I do not want to use anything like ncurses. Simple old C please.
thanks
EDIT:
Can I go up and / or down? Example: I have 10 lines of output, I want to change the 3rd line from Doing ABC to ABC: Done . How can i do this?
Also, can anyone post more details on what VT102 characters are? What are its features? Please write good links to this, if you have any.
thanks
c linux terminal stdout
jrharshath
source share