sharkdp / pastel

A command-line tool to generate, analyze, convert and manipulate colors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to force colour output with a pager ?

simonmichael opened this issue · comments

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

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...

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