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
Ignore OSC ansi sequences when calculating line length #633
Labels
Comments
Makes sense. I'd welcome a PR for this. |
vadimdemedes
changed the title
ignore OSC ansi sequences when calculating line length
Ignore OSC ansi sequences when calculating line length
Nov 11, 2023
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I thought to add hyperlinks to stack trace reporting in node-tap but the OSC ansi sequence makes ink think that it's a very long line, and wrap inappropriately, even though there are no visible characters printed.
Proposal: when calculating line length, ignore any strings matching
/\x1b].*?\x1b\\/
. This will prevent ink from including title setting sequences or hyperlinks in the length calculation.The text was updated successfully, but these errors were encountered: