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

Automatically color output based on whether output is a terminal #240

Merged
merged 2 commits into from
May 18, 2021

Conversation

misberner
Copy link
Contributor

In the absence of an explicit --no-color flag specification, try to infer whether the standard output is a terminal, and only emit colored output when it is.
This only affects invocations without the flag, all of --no-color, --no-color=false, and --no-color=true retain their original semantics.

See example:
Screen Shot 2020-09-10 at 23 54 47

@stale
Copy link

stale bot commented Dec 9, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 9, 2020
@misberner
Copy link
Contributor Author

@mumoshu any interest in this?

@stale stale bot removed the stale label Dec 10, 2020
@stale
Copy link

stale bot commented Mar 16, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Mar 16, 2021
@misberner
Copy link
Contributor Author

@mumoshu ping on this. Is this project still maintained?

Copy link
Collaborator

@mumoshu mumoshu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for your patience and contribution @misberner ☺️

@stale stale bot removed the stale label May 18, 2021
@mumoshu mumoshu merged commit 0c4bd34 into databus23:master May 18, 2021
@dex4er dex4er mentioned this pull request May 19, 2021
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

Successfully merging this pull request may close these issues.

2 participants