How to update a printed message in terminal without reprinting

后端 未结 8 2159
时光取名叫无心
时光取名叫无心 2020-11-29 02:50

I want to make a progress bar for my terminal application that would work something like:

 [XXXXXXX       ] 

which would give a visual indi

8条回答
  •  青春惊慌失措
    2020-11-29 03:14

    I'd say that a library like ncurses would be used to such things. curses helps move the cursor around the screen and draw text and such.

    NCurses

提交回复
热议问题