You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
vadimdemedes
changed the title
ignore OSC ansi sequences when calculating line length
Ignore OSC ansi sequences when calculating line length
Nov 11, 2023
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: