Skip to content

How to propagate ansi codes in tables through a pipe? #12780

Answered by Jan9103
alecandido asked this question in Q&A
Discussion options

You must be logged in to vote

i found a workaround: | to text | less

it somehow determines if the it ever reaches a external command and then strips the ansi (checkable with | lines | into string | save -r foo.txt; cat foo.txt, etc).
it seems to forget that its the same data when using | to text. i assume it stores some sort of "this is ansi" inside of the string and to text clears the metadata.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@alecandido
Comment options

@Jan9103
Comment options

Answer selected by alecandido
@alecandido
Comment options

@Jan9103
Comment options

@alecandido
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants