A
A
Akmal Kadirov2014-01-30 21:40:55
linux
Akmal Kadirov, 2014-01-30 21:40:55

How to remove characters from stdout in C?

Let's say there is a string "OK", after a certain time it changes to "ERROR".
How to do it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
CAMOKPYT, 2014-01-30
@kadirov

en.wikipedia.org/wiki/Ncurses

Z
zvorygin, 2014-01-30
@zvorygin

For example, print carriage returns and then print a new message on top.
printf('\b\bERROR');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question