docker pulling images的時候:
Using default tag:latest
latest:Pulling from library/ubuntu
fd2731e4c50c: Downloading [===========> ]
28a2f68d1120: Pull complete
a3ed95caeb02: Pull complete
...
在同一行,文字顯示會有動畫的效果,
如:
Downloading [===========> ]
完成後,
同一行變成:
28a2f68d1120: Pull complete
印象中,
很古早的時代,
Unix Terminal/ Windows DOS早就存在這種效果.
所以docker這個顯示部份,很有可能是用C語言寫的.
想請問大大們,
這是怎麼寫出來的?
iostream好像沒有這類functions?