We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a5d483 commit 7594c51Copy full SHA for 7594c51
progressbar.go
@@ -10,6 +10,7 @@ import (
10
"net/http"
11
"os"
12
"regexp"
13
+ "runtime"
14
"strings"
15
"sync"
16
"time"
@@ -1373,6 +1374,9 @@ func clearProgressBar(c config, s state) error {
1373
1374
// fill the empty content
1375
// to overwrite the progress bar and jump
1376
// back to the beginning of the line
1377
+ if runtime.GOOS == "windows" {
1378
+ return writeString(c, "\r")
1379
+ }
1380
str := fmt.Sprintf("\r%s\r", strings.Repeat(" ", s.maxLineWidth))
1381
return writeString(c, str)
1382
// the following does not show correctly if the previous line is longer than subsequent line
0 commit comments