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

Color should be turn off automatically if the output is not a terminal device #81

Closed
xuchunyang opened this issue Jun 12, 2019 · 2 comments

Comments

@xuchunyang
Copy link

The color becomes annoying and unwanted when outputs to pipe

~ $ tldr ls | less

or Emacs

(shell-command-to-string "tldr ls")

Some programs such as ls provide --color=auto|never|always

@dbrgn
Copy link
Collaborator

dbrgn commented Jun 12, 2019

👍

Note that if your goal is using a pager to view the pages, you can also set the use_pager config variable.

@Delapouite
Copy link
Contributor

Some programs such as ls provide --color=auto|never|always

Here are more details about different approaches https://no-color.org/

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

No branches or pull requests

3 participants