pb
pb copied to clipboard
Progress bar not drawn when stdout is redirected on Windows
How to reproduce:
bar := pb.New(1000)
bar.Output = os.Stderr
bar.Start()
Run with:
myprogram > output
Expected: Progress bar is drawn because output goes to Stderr and Stderr is a terminal.
Actual: No progress bar is drawn, only counters and percentage is shown.
I can reproduce this too on Windows 10 64 bit.
go get gopkg.in/cheggaaa/pb.v1
I think this is fixed in ca37cd7eed45ea7cee15cba4abdf022116a01ce7