rsalmei / alive-progress

A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!
MIT License
5.53k stars 206 forks source link

How to align multiple bars, when whitespace is stripped from bar_title #158

Closed BroodjeKroepoek closed 2 years ago

BroodjeKroepoek commented 2 years ago

Schermafbeelding 2022-04-27 134710

I've already tried string.rjust and string.ljust, but I think internally the whitespace is stripped from bar_title. So my question is how do I align the bars?

I want something like this: image

rsalmei commented 2 years ago

Hello @BroodjeKroepoek,

It's easy, I've made an option called title_length, which makes all titles use that exact size, i.e. if less it gets spaces, if more it is truncated.

It is cited twice in the README, here:

image

and here:

image