Skip to main content

responsive_width

Function responsive_width 

Source
pub fn responsive_width(utilization: f64) -> usize
Expand description

Returns a target width for tables based on terminal size.

Uses a utilization factor (0.0-1.0) to leave some margin. Common value is 0.85 (85% of terminal width).