ogham / rust-term-grid

Rust library for putting things in a grid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Color codes ruin width calculation.

mtsoltan opened this issue · comments

uutils's ls --color re-calculates widths, passing them explicitly to cells, because terminal colors ruin the width calculation of term-grid.

Ideally, term-grid should recognize color escape sequences and treat them as zero-width, or at least have a grid option which makes that possible, to allow out-of-the-box color handling.