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

how to force colour output with a pager ? #219

Open
simonmichael opened this issue May 18, 2024 · 3 comments
Open

how to force colour output with a pager ? #219

simonmichael opened this issue May 18, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@simonmichael
Copy link

I love pastel, thanks!

Output is often long and I'd like to view it in a pager. I think pastel disables colour output when stdout is non-interactive. How can I force it not to ? I tried eg TERM=xterm-256color COLOR=always pastel -f list | less -R

@sharkdp sharkdp added the bug Something isn't working label Jun 22, 2024
@sharkdp
Copy link
Owner

sharkdp commented Jun 22, 2024

Oh, that is a bug.

-f should indeed force colors to be visible, even if the output is non-interactive. I'm pretty sure this worked before...

@sharkdp
Copy link
Owner

sharkdp commented Jun 22, 2024

Or maybe it only worked for pastel paint (where -f still works)

@andelink
Copy link

andelink commented Sep 2, 2024

FWIW I also have not been able to get the pastel color command to force colorization. pastel paint yes, pastel color and pastel list, no. I would also really appreciate this feature if it's possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants