Skip to main content

process_table_budget

Function process_table_budget 

Source
pub fn process_table_budget(width: u16) -> ProcessTableBudget
Expand description

Column budget for a process table rendered at width terminal columns.

Both process tables — ui::output and commands::watch — size their columns from this. They used to carry separate copies of the same layout, which is exactly how watch kept wrapping after the other table was fixed.

Pre-truncating each flexible column to its share is what keeps one process on one line: comfy-table wraps any cell that does not fit, and a wrapped cell destroys the alignment that makes a table readable.