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.
2 parents 533e284 + 7594c51 commit 655d41eCopy full SHA for 655d41e
progressbar.go
@@ -10,6 +10,7 @@ import (
10
"net/http"
11
"os"
12
"regexp"
13
+ "runtime"
14
"strings"
15
"sync"
16
"time"
@@ -1380,6 +1381,9 @@ func clearProgressBar(c config, s state) error {
1380
1381
// fill the empty content
1382
// to overwrite the progress bar and jump
1383
// back to the beginning of the line
1384
+ if runtime.GOOS == "windows" {
1385
+ return writeString(c, "\r")
1386
+ }
1387
str := fmt.Sprintf("\r%s\r", strings.Repeat(" ", s.maxLineWidth))
1388
return writeString(c, str)
1389
// the following does not show correctly if the previous line is longer than subsequent line
0 commit comments