{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/27867","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/27867/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/27867/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/27867/events","html_url":"https://github.com/rust-lang/rust/pull/27867","id":101494349,"number":27867,"title":"Enable or disable colored output according to CLICOLOR(_FORCE)","user":{"login":"jhasse","id":80071,"avatar_url":"https://avatars.githubusercontent.com/u/80071?v=3","gravatar_id":"","url":"https://api.github.com/users/jhasse","html_url":"https://github.com/jhasse","followers_url":"https://api.github.com/users/jhasse/followers","following_url":"https://api.github.com/users/jhasse/following{/other_user}","gists_url":"https://api.github.com/users/jhasse/gists{/gist_id}","starred_url":"https://api.github.com/users/jhasse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhasse/subscriptions","organizations_url":"https://api.github.com/users/jhasse/orgs","repos_url":"https://api.github.com/users/jhasse/repos","events_url":"https://api.github.com/users/jhasse/events{/privacy}","received_events_url":"https://api.github.com/users/jhasse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"sfackler","id":1455697,"avatar_url":"https://avatars.githubusercontent.com/u/1455697?v=3","gravatar_id":"","url":"https://api.github.com/users/sfackler","html_url":"https://github.com/sfackler","followers_url":"https://api.github.com/users/sfackler/followers","following_url":"https://api.github.com/users/sfackler/following{/other_user}","gists_url":"https://api.github.com/users/sfackler/gists{/gist_id}","starred_url":"https://api.github.com/users/sfackler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfackler/subscriptions","organizations_url":"https://api.github.com/users/sfackler/orgs","repos_url":"https://api.github.com/users/sfackler/repos","events_url":"https://api.github.com/users/sfackler/events{/privacy}","received_events_url":"https://api.github.com/users/sfackler/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-08-17T19:36:31Z","updated_at":"2015-09-24T11:13:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/27867","html_url":"https://github.com/rust-lang/rust/pull/27867","diff_url":"https://github.com/rust-lang/rust/pull/27867.diff","patch_url":"https://github.com/rust-lang/rust/pull/27867.patch"},"body":"While #14040 already enabled a command line flag to enable or disable colored output, this uses the environment variables `CLICOLOR` and `CLICOLOR_FORCE`. `CLICOLOR=0` would be `--color=never` and `CLICOLOR_FORCE=1` `--color=always`.\r\n\r\nWhy environment variables when there is already a command line switch? When working with build systems, editors or continuous integration servers output almost always gets piped or buffered, so a switch to force colored output is needed. When we agree upon a standard for this, the only thing one would need to do in such a situation is to define `CLICOLOR_FORCE=1`. I've also created a page with a summary: http://bixense.com/clicolors/ Please tell me what you think :)"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/142900067","html_url":"https://github.com/rust-lang/rust/pull/27867#issuecomment-142900067","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/27867","id":142900067,"user":{"login":"jhasse","id":80071,"avatar_url":"https://avatars.githubusercontent.com/u/80071?v=3","gravatar_id":"","url":"https://api.github.com/users/jhasse","html_url":"https://github.com/jhasse","followers_url":"https://api.github.com/users/jhasse/followers","following_url":"https://api.github.com/users/jhasse/following{/other_user}","gists_url":"https://api.github.com/users/jhasse/gists{/gist_id}","starred_url":"https://api.github.com/users/jhasse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhasse/subscriptions","organizations_url":"https://api.github.com/users/jhasse/orgs","repos_url":"https://api.github.com/users/jhasse/repos","events_url":"https://api.github.com/users/jhasse/events{/privacy}","received_events_url":"https://api.github.com/users/jhasse/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T11:13:44Z","updated_at":"2015-09-24T11:13:44Z","body":"Thanks for the hint! I've created an issue here: https://github.com/chalk/supports-color/issues/32\r\n\r\nAnother name is also fine, but I really hope that it isn't Rust specific, so that Jenkins (with the ANSI plugin) and other tools (atom-build, ninja, ...) would display color out-of-the-box."}}