{"action":"created","issue":{"url":"https://api.github.com/repos/rspec/rspec-core/issues/2230","repository_url":"https://api.github.com/repos/rspec/rspec-core","labels_url":"https://api.github.com/repos/rspec/rspec-core/issues/2230/labels{/name}","comments_url":"https://api.github.com/repos/rspec/rspec-core/issues/2230/comments","events_url":"https://api.github.com/repos/rspec/rspec-core/issues/2230/events","html_url":"https://github.com/rspec/rspec-core/issues/2230","id":151011717,"number":2230,"title":"Simplify `--tty`/`--color`/`--no-color` semantics","user":{"login":"myronmarston","id":49391,"avatar_url":"https://avatars.githubusercontent.com/u/49391?v=3","gravatar_id":"","url":"https://api.github.com/users/myronmarston","html_url":"https://github.com/myronmarston","followers_url":"https://api.github.com/users/myronmarston/followers","following_url":"https://api.github.com/users/myronmarston/following{/other_user}","gists_url":"https://api.github.com/users/myronmarston/gists{/gist_id}","starred_url":"https://api.github.com/users/myronmarston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myronmarston/subscriptions","organizations_url":"https://api.github.com/users/myronmarston/orgs","repos_url":"https://api.github.com/users/myronmarston/repos","events_url":"https://api.github.com/users/myronmarston/events{/privacy}","received_events_url":"https://api.github.com/users/myronmarston/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/rspec/rspec-core/milestones/14","html_url":"https://github.com/rspec/rspec-core/milestones/4.0","labels_url":"https://api.github.com/repos/rspec/rspec-core/milestones/14/labels","id":693817,"number":14,"title":"4.0","description":"Changes that will go in 4.0","creator":{"login":"myronmarston","id":49391,"avatar_url":"https://avatars.githubusercontent.com/u/49391?v=3","gravatar_id":"","url":"https://api.github.com/users/myronmarston","html_url":"https://github.com/myronmarston","followers_url":"https://api.github.com/users/myronmarston/followers","following_url":"https://api.github.com/users/myronmarston/following{/other_user}","gists_url":"https://api.github.com/users/myronmarston/gists{/gist_id}","starred_url":"https://api.github.com/users/myronmarston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myronmarston/subscriptions","organizations_url":"https://api.github.com/users/myronmarston/orgs","repos_url":"https://api.github.com/users/myronmarston/repos","events_url":"https://api.github.com/users/myronmarston/events{/privacy}","received_events_url":"https://api.github.com/users/myronmarston/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":2,"state":"open","created_at":"2014-06-17T17:00:11Z","updated_at":"2016-06-05T17:07:44Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-04-26T00:16:59Z","updated_at":"2016-06-06T01:47:38Z","closed_at":null,"body":"Currently, the config options for colors are suboptimal:\r\n\r\n* By default, colors are not displayed.\r\n* `--color` opts-in to color\r\n* ...unless the output is non-tty, in which colors are not displayed\r\n* ...unless you pass the undocumented `--tty` option, which forces color even when the output is non-tty\r\n* If `--no-color` is passed it turns color off.\r\n\r\nThe `--tty` option is undocumented and weird (and has caused some confusion; see #2229) and feels like it shouldn't be necessary.  In addition, it is suboptimal that we default to showing the user no color in the output even if they are on a TTY.  I think nearly everyone prefers color to no color.  So I'd suggest we change things up in RSpec 4:\r\n\r\n* By default, show color (or not) based on if the output is TTY (or not).  This will usually do the \"right thing\" without any user intervention.\r\n* Support `--color` (or maybe `--force-color`) to force color output even if the output is not a TTY.\r\n* Support `--no-color` to disable color output even if the output is a TTY."},"comment":{"url":"https://api.github.com/repos/rspec/rspec-core/issues/comments/223852732","html_url":"https://github.com/rspec/rspec-core/issues/2230#issuecomment-223852732","issue_url":"https://api.github.com/repos/rspec/rspec-core/issues/2230","id":223852732,"user":{"login":"JonRowe","id":162976,"avatar_url":"https://avatars.githubusercontent.com/u/162976?v=3","gravatar_id":"","url":"https://api.github.com/users/JonRowe","html_url":"https://github.com/JonRowe","followers_url":"https://api.github.com/users/JonRowe/followers","following_url":"https://api.github.com/users/JonRowe/following{/other_user}","gists_url":"https://api.github.com/users/JonRowe/gists{/gist_id}","starred_url":"https://api.github.com/users/JonRowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonRowe/subscriptions","organizations_url":"https://api.github.com/users/JonRowe/orgs","repos_url":"https://api.github.com/users/JonRowe/repos","events_url":"https://api.github.com/users/JonRowe/events{/privacy}","received_events_url":"https://api.github.com/users/JonRowe/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T01:47:38Z","updated_at":"2016-06-06T01:47:38Z","body":"@myronmarston I agree we should go colour based on the nature of the output with `--force-color` and `--no-color` to alter the behaviour either way."}}
{"actor":{"display_login":"JonRowe"}}