{"action":"created","issue":{"url":"https://api.github.com/repos/waf-project/waf/issues/1555","labels_url":"https://api.github.com/repos/waf-project/waf/issues/1555/labels{/name}","comments_url":"https://api.github.com/repos/waf-project/waf/issues/1555/comments","events_url":"https://api.github.com/repos/waf-project/waf/issues/1555/events","html_url":"https://github.com/waf-project/waf/issues/1555","id":68564380,"number":1555,"title":"Preserve colored output from compiler","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":null,"milestone":null,"comments":1,"created_at":"2015-04-15T03:40:46Z","updated_at":"2015-04-15T14:47:04Z","closed_at":null,"body":"When using clang with colored output running through waf is uncolored.\r\n\r\nThis is how I fix it in SCons:\r\n```\r\nenv['ENV']['TERM'] = os.environ['TERM']\r\n```"},"comment":{"url":"https://api.github.com/repos/waf-project/waf/issues/comments/93429686","html_url":"https://github.com/waf-project/waf/issues/1555#issuecomment-93429686","issue_url":"https://api.github.com/repos/waf-project/waf/issues/1555","id":93429686,"user":{"login":"kirbyfan64","id":1690697,"avatar_url":"https://avatars.githubusercontent.com/u/1690697?v=3","gravatar_id":"","url":"https://api.github.com/users/kirbyfan64","html_url":"https://github.com/kirbyfan64","followers_url":"https://api.github.com/users/kirbyfan64/followers","following_url":"https://api.github.com/users/kirbyfan64/following{/other_user}","gists_url":"https://api.github.com/users/kirbyfan64/gists{/gist_id}","starred_url":"https://api.github.com/users/kirbyfan64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirbyfan64/subscriptions","organizations_url":"https://api.github.com/users/kirbyfan64/orgs","repos_url":"https://api.github.com/users/kirbyfan64/repos","events_url":"https://api.github.com/users/kirbyfan64/events{/privacy}","received_events_url":"https://api.github.com/users/kirbyfan64/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T14:47:04Z","updated_at":"2015-04-15T14:47:04Z","body":"That's kind of ucky. The best way to do it?\r\n\r\nAdd a command-line option to your build script labeled `--use-color`. If enabled, pass `-fdiagnostics-color` to the compiler."}}