Open paoloteti opened 1 month ago
Hi @paoloteti, thanks for the report, we will look into the issue. In the meantime, if you set the environment variable NO_COLORS=y it will eliminate the control characters:
NO_COLORS=y syft nats -o syft-table=out.txt
Hope this helps!
To fix this, we could decorate the existing writers that are created when we process output flags with another writer that strips ANSI control characters from the stream of bytes being written.
What happened: Running:
syft nats -o syft-table=out.txt
generate a text file with rows such as
Using
syft nats --file=out.txt
generate the same file without escape chars at the end of each row.What you expected to happen: Files generated using
syft nats -o syft-table=foo.txt
to be the same ofsyft nats --file=foo.txt
Steps to reproduce the issue:
Anything else we need to know?:
Environment:
syft version
: 1.5.0cat /etc/os-release
or similar): Rocky Linux 9.4