{"action":"created","issue":{"url":"https://api.github.com/repos/Marak/colors.js/issues/136","repository_url":"https://api.github.com/repos/Marak/colors.js","labels_url":"https://api.github.com/repos/Marak/colors.js/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/Marak/colors.js/issues/136/comments","events_url":"https://api.github.com/repos/Marak/colors.js/issues/136/events","html_url":"https://github.com/Marak/colors.js/issues/136","id":96616923,"number":136,"title":"Undesired behavior in Cygwin? ","user":{"login":"echobnet","id":13371679,"avatar_url":"https://avatars1.githubusercontent.com/u/13371679?v=4","gravatar_id":"","url":"https://api.github.com/users/echobnet","html_url":"https://github.com/echobnet","followers_url":"https://api.github.com/users/echobnet/followers","following_url":"https://api.github.com/users/echobnet/following{/other_user}","gists_url":"https://api.github.com/users/echobnet/gists{/gist_id}","starred_url":"https://api.github.com/users/echobnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/echobnet/subscriptions","organizations_url":"https://api.github.com/users/echobnet/orgs","repos_url":"https://api.github.com/users/echobnet/repos","events_url":"https://api.github.com/users/echobnet/events{/privacy}","received_events_url":"https://api.github.com/users/echobnet/received_events","type":"User","site_admin":false},"labels":[{"id":839610360,"url":"https://api.github.com/repos/Marak/colors.js/labels/fixed%20in%20next","name":"fixed in next","color":"bfd4f2","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-07-22T17:00:44Z","updated_at":"2018-03-25T19:37:15Z","closed_at":"2018-03-25T19:37:15Z","author_association":"NONE","body":"For the longest time, I thought cygwin was dumb in that it didn't support colors outputted by colors.js. While cygwin might be dumb in other areas, I know it at least supports colors.\n\nLooking at _supports-colors.js_ and seeing its tests, I found that node/cygwin has `process.stdout.isTTY` as _undefined_. That test comes before all these others (below) which a few would at least pass: \n\n`process.platform` returns _win32_, but is placed beneath the isTTY check.\nFor me, `process.env.TERM` returns _xterm-256color_ The default for cygwin is now _xterm_ (not _cygwin_ as the test checks for), but can be set to _xterm-256color_. \n\nI could even set an env variable COLORTERM, but it wouldn't get hit because of the location of the `isTTY` check. \n##### If the _isTTY_  test were below a few of the other ones, cygwin would work with colors by default and without having to use `--colors`.\n"},"comment":{"url":"https://api.github.com/repos/Marak/colors.js/issues/comments/375997054","html_url":"https://github.com/Marak/colors.js/issues/136#issuecomment-375997054","issue_url":"https://api.github.com/repos/Marak/colors.js/issues/136","id":375997054,"user":{"login":"DABH","id":1920464,"avatar_url":"https://avatars1.githubusercontent.com/u/1920464?v=4","gravatar_id":"","url":"https://api.github.com/users/DABH","html_url":"https://github.com/DABH","followers_url":"https://api.github.com/users/DABH/followers","following_url":"https://api.github.com/users/DABH/following{/other_user}","gists_url":"https://api.github.com/users/DABH/gists{/gist_id}","starred_url":"https://api.github.com/users/DABH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DABH/subscriptions","organizations_url":"https://api.github.com/users/DABH/orgs","repos_url":"https://api.github.com/users/DABH/repos","events_url":"https://api.github.com/users/DABH/events{/privacy}","received_events_url":"https://api.github.com/users/DABH/received_events","type":"User","site_admin":false},"created_at":"2018-03-25T19:37:15Z","updated_at":"2018-03-25T19:37:15Z","author_association":"COLLABORATOR","body":"Closing this due to lack of activity.  Thanks!"}}
{"actor":{"display_login":"DABH"}}