Skip to main content

bar

Function bar 

Source
pub fn bar(w: usize, left: Vec<Span<'_>>, right: Vec<Span<'_>>) -> String
Expand description

A bar with one group pinned left and one pinned right.

A Layout reserves the right group’s width before the left group is drawn, so a narrow terminal clips the left. For every bar here that is the right way round: the window and the limit say what the filter was applied to, and losing them to a long filter string is what the hand-rolled pad_to did.