Skip to main content

render_disk_bar

Function render_disk_bar 

Source
pub fn render_disk_bar(disk: &PhysicalDisk, width: usize, color: bool) -> String
Expand description

Render the proportional bar plus legend for one disk. width is the bar’s inner column count; color selects ANSI-coloured solid blocks (TTY) versus ASCII glyphs (pipe-safe). The disk’s largest partition is drawn in the primary palette colour.