pb icon indicating copy to clipboard operation
pb copied to clipboard

Progress bar not drawn when stdout is redirected on Windows

Open AndreKR opened this issue 6 years ago • 2 comments

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.

AndreKR avatar Sep 01 '17 07:09 AndreKR

I can reproduce this too on Windows 10 64 bit. go get gopkg.in/cheggaaa/pb.v1

sanjidchogle avatar Nov 28 '18 08:11 sanjidchogle

I think this is fixed in ca37cd7eed45ea7cee15cba4abdf022116a01ce7

gnojus avatar Dec 28 '19 15:12 gnojus