containerd/progress
Zhang Wei a06abd7493 [progress] Fix wrong display of progress bar
When we try to pull an image with "ctr pull xxx", the progress bar
display will flush all the screen and make it so hard to find useful
information for user.

This commit fixes bugs for the progress bar, by correcting "line counting"
algorithm. Previous algorithm only counts number of "\n", but one line
can be longer than screen width, in which case it should be counted as
two lines. Also updated the screen cleaning ESC chars.

Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
2017-10-17 00:24:54 +08:00
..
bar.go Comment more packages to pass go lint 2017-10-02 13:54:56 -04:00
doc.go cmd/dist: implement fetch prototype 2017-03-02 17:36:01 -08:00
escape.go cmd/dist: implement fetch prototype 2017-03-02 17:36:01 -08:00
humaans.go Comment more packages to pass go lint 2017-10-02 13:54:56 -04:00
writer.go [progress] Fix wrong display of progress bar 2017-10-17 00:24:54 +08:00