Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colored output #13

Open
vulns-are-features-too opened this issue Jun 13, 2022 · 2 comments
Open

Colored output #13

vulns-are-features-too opened this issue Jun 13, 2022 · 2 comments

Comments

@vulns-are-features-too
Copy link

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

@elkowar
Copy link
Owner

elkowar commented Jun 14, 2022

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

@vulns-are-features-too
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants