Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color codes ruin width calculation. #13

Open
mtsoltan opened this issue Oct 9, 2021 · 0 comments
Open

Color codes ruin width calculation. #13

mtsoltan opened this issue Oct 9, 2021 · 0 comments

Comments

@mtsoltan
Copy link

mtsoltan commented Oct 9, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant