rust-term-grid icon indicating copy to clipboard operation
rust-term-grid copied to clipboard

Color codes ruin width calculation.

Open mtsoltan opened this issue 4 years ago • 0 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.

mtsoltan avatar Oct 09 '21 17:10 mtsoltan