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

Issues with ANSI escape sequences #5

Open
andywer opened this issue Nov 8, 2017 · 1 comment
Open

Issues with ANSI escape sequences #5

andywer opened this issue Nov 8, 2017 · 1 comment

Comments

@andywer
Copy link

andywer commented Nov 8, 2017

Hi and thanks for the handy package! I just encountered an issue, though.

If the input contains ANSI escape sequences, the aligning won't work reliably. I encountered the issue when using center-align together with chalk.

Proposal: strip-ansi could be applied on the input line before determining its length in order to not include non-visible characters in the length.

@jonschlinkert
Copy link
Owner

This will be fixed in the upcoming release.

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

2 participants