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 · 2 comments
Open

how to force colour output with a pager ? #219

simonmichael opened this issue May 18, 2024 · 2 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)

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

2 participants