Open
Description
Right now, go-ansi-parser's ansi.Length
includes the URL part of a terminal hyperlink. This makes the line count super long even when it's visibly just a small piece of text.
ansi.Length
should ideally only return the visible text component of a hyperlink.
Example:
For string:
"\x1b[33;1mSource Code: \x1b[0m\x1b]8;;https://libdb.so/libdb.so\x1b\\diamondburned/libdb.so\x1b]8;;\x1b\\"
ansi.Length(str)
should return 35 (probably maybe?), but it currently returns 74.
Metadata
Metadata
Assignees
Labels
No labels
Activity