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

カラー出力を制限したい #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hatyuki
Copy link
Contributor

@hatyuki hatyuki commented Mar 15, 2013

出力をリダイレクトしたり、cron などで実行したりした場合に、カラー出力のエスケープシーケンスが邪魔な場合があるため、色出力の要否を設定したいなと思い試しに実装してみました。

たとえば $ENV{CINNAMON_COLORS} で制御するなど、方法は他にもあると思いますが基本方針としていかがでしょうか。
ご意見お聞かせください。

@shibayu36
Copy link
Collaborator

@hatyuki
pull requestへの返信遅れてすいません。
カラー出力を制限するのはコマンド実行単位で行いたいと思うので、CLIの--no-colorオプションが付いた時に制限するという方法はどうでしょうか?

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