pipr icon indicating copy to clipboard operation
pipr copied to clipboard

Colored output

Open vulns-are-features-too opened this issue 2 years ago • 2 comments

For commands with colored output like jq and ls --color=auto, would it be possible to make pipr's output retain those colors?

vulns-are-features-too avatar Jun 13 '22 12:06 vulns-are-features-too

Im not sure actually. If you explicitly force those apps to output colors it should work, but they tend to detect if they're run in a pipe (i.e. In ls | grep foo, or, well, in pipr) and then auto disable their colors

elkowar avatar Jun 14 '22 10:06 elkowar

I've tried bat --color=always which forces bat to print with color and pipr prints the output with ASCII characters for colors like [38;2;249;38;114m.

vulns-are-features-too avatar Jun 30 '22 13:06 vulns-are-features-too