roelvandijk / terminal-progress-bar

Other
24 stars 9 forks source link

Automatically determine the terminal width #18

Closed wenkokke closed 7 years ago

wenkokke commented 7 years ago

It may be a nice feature to integrate the progressbar code with the terminal-size package, so that you can call a function – e.g. progressBar' – to get a progress bar which is automatically sized to the maximum possible size.

wenkokke commented 7 years ago

See https://hackage.haskell.org/package/terminal-size

roelvandijk commented 7 years ago

This is a very good idea! This has been requested before (#1). I like the simplicity of the terminal-size package.

roelvandijk commented 7 years ago

Implemented in 8c341939425b270f191409372cba05a787eb992b!

Thanks for suggesting the excellent terminal-size package.