More control over standard output C

I cannot find the right way to ask the almighty Google ...

In programs such as the command line progress bar, the output buffer seems to be directly manipulating. He cannot print a character to the terminal anywhere he wants. How is this control over program output controlled by standard C? Is there a special library I can find?

+3
source share
6 answers

watch curses this is lib for unix / linux

+5
source

If you just need a progress bar, you can simply print one "X" for every 2% completion. This should fill 50 characters per line.

- , Linux "curses", , , Debian, .

+3

\r check this

ncurses

+3

C. , , , ..

+2

- ncurses, . \r , , .. tput(1) . , , , tput smso tput rmso. , C popen(3); .

0

ANSI escape- termincal. MUD .

0
source

Source: https://habr.com/ru/post/1712429/