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

Colors when piping output to less. #199

Open
GasparVardanyan opened this issue Dec 14, 2022 · 0 comments
Open

Colors when piping output to less. #199

GasparVardanyan opened this issue Dec 14, 2022 · 0 comments

Comments

@GasparVardanyan
Copy link

First of all thank you for this cool project.

When I pipe output to less, I lose colors.
I do something like:

tldr ls | less -ru~ +g

and get one-color (my terminal's fg) output.

less -ru~ +g is capable to draw colored/bold/etc texts.

For example, ls (exa) have an option --color=always and when I pipe it's output to less, I get the same colored output.

Please add an ability to have colors in less.

I use tldr 3.1.0-2.

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

1 participant