Additional note: pb includes implementation to calculate terminal width, but the interfaces are not public.
https://github.com/rakyll/pb/blob/master/pb_nix.go
https://github.com/rakyll/pb/blob/master/pb_win.go