15 ms·
Good explanation. It is a nice progress bar, but not particularly unique; many command line tools use progress bars like this. I've always been curious how the
by brainbag 5y ago
Good explanation. It is a nice progress bar, but not particularly unique; many command line tools use progress bars like this.
I've always been curious how the Heroku CLI renders its progress bar, which is unique as far as I've seen. It does not seem to use characters, it's seemingly a smooth, pixel-based fill like you'd get in a non-terminal app. Downloading a pg backup is the most common place I see it.
- julienpalard 5y agoIn Python you can use tqdm for this: python -c 'import tqdm; i=[j for j in tqdm.trange(int(1e8))]'
- kqr 5y agoThere are characters that are boxes of varying width, but maybe you've confirmed it's not even that?
- timdorr 5y agoThey use this package under the hood: https://github.com/jdxcode/smooth-progress https://github.com/jdxcode/smooth-progress It uses glyphs of boxes that have varying widths. When joined together, they appear as a solid bar.
- deleted 5y ago[deleted]