diff --git a/progress.go b/progress.go index 7676ae9..983b9e2 100644 --- a/progress.go +++ b/progress.go @@ -50,6 +50,8 @@ const ( // default RefreshRate rr = 100 + // default width + pwidth = 70 // number of format runes for bar numFmtRunes = 5 ) @@ -81,7 +83,7 @@ ctx = context.Background() } p := &Progress{ - width: 70, + width: pwidth, operationCh: make(chan *operation), rrChangeReqCh: make(chan time.Duration), outChangeReqCh: make(chan io.Writer),