How to animate the command line?

前端 未结 8 1911
臣服心动
臣服心动 2020-11-27 09:09

I have always wondered how people update a previous line in a command line. a great example of this is when using the wget command in linux. It creates an ASCII loading bar

8条回答
  •  旧巷少年郎
    2020-11-27 09:44

    PowerShell has a Write-Progress cmdlet that creates an in-console progress bar that you can update and modify as your script runs.

提交回复
热议问题