I want to inplement a progress bar use C like tqdm in Python or apt-get in Ubuntu. But I have no idea.
My problem is how to make the progress bar always be at the bottom of the terminal, and the top normally outputs something else.
Like the apt-get program in Ubuntu is implemented in the following figure.
