{"action":"created","issue":{"url":"https://api.github.com/repos/bateman/filebotology/issues/9","labels_url":"https://api.github.com/repos/bateman/filebotology/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/bateman/filebotology/issues/9/comments","events_url":"https://api.github.com/repos/bateman/filebotology/issues/9/events","html_url":"https://github.com/bateman/filebotology/issues/9","id":88024180,"number":9,"title":"Use colors in console output","user":{"login":"bateman","id":52096,"avatar_url":"https://avatars.githubusercontent.com/u/52096?v=3","gravatar_id":"","url":"https://api.github.com/users/bateman","html_url":"https://github.com/bateman","followers_url":"https://api.github.com/users/bateman/followers","following_url":"https://api.github.com/users/bateman/following{/other_user}","gists_url":"https://api.github.com/users/bateman/gists{/gist_id}","starred_url":"https://api.github.com/users/bateman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bateman/subscriptions","organizations_url":"https://api.github.com/users/bateman/orgs","repos_url":"https://api.github.com/users/bateman/repos","events_url":"https://api.github.com/users/bateman/events{/privacy}","received_events_url":"https://api.github.com/users/bateman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bateman/filebotology/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"bateman","id":52096,"avatar_url":"https://avatars.githubusercontent.com/u/52096?v=3","gravatar_id":"","url":"https://api.github.com/users/bateman","html_url":"https://github.com/bateman","followers_url":"https://api.github.com/users/bateman/followers","following_url":"https://api.github.com/users/bateman/following{/other_user}","gists_url":"https://api.github.com/users/bateman/gists{/gist_id}","starred_url":"https://api.github.com/users/bateman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bateman/subscriptions","organizations_url":"https://api.github.com/users/bateman/orgs","repos_url":"https://api.github.com/users/bateman/repos","events_url":"https://api.github.com/users/bateman/events{/privacy}","received_events_url":"https://api.github.com/users/bateman/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/bateman/filebotology/milestones/3","html_url":"https://github.com/bateman/filebotology/milestones/1.2","labels_url":"https://api.github.com/repos/bateman/filebotology/milestones/3/labels","id":1163185,"number":3,"title":"1.2","description":"","creator":{"login":"bateman","id":52096,"avatar_url":"https://avatars.githubusercontent.com/u/52096?v=3","gravatar_id":"","url":"https://api.github.com/users/bateman","html_url":"https://github.com/bateman","followers_url":"https://api.github.com/users/bateman/followers","following_url":"https://api.github.com/users/bateman/following{/other_user}","gists_url":"https://api.github.com/users/bateman/gists{/gist_id}","starred_url":"https://api.github.com/users/bateman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bateman/subscriptions","organizations_url":"https://api.github.com/users/bateman/orgs","repos_url":"https://api.github.com/users/bateman/repos","events_url":"https://api.github.com/users/bateman/events{/privacy}","received_events_url":"https://api.github.com/users/bateman/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-06-13T15:36:28Z","updated_at":"2015-06-13T15:49:20Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-06-13T15:49:20Z","updated_at":"2015-06-13T16:03:29Z","closed_at":null,"body":"As tput command is not available in the ash version on the Synology NAS', we will have to do with escape codes for colors, see http://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux\r\n\r\nBlack        0;30     Dark Gray     1;30\r\nBlue         0;34     Light Blue    1;34\r\nGreen        0;32     Light Green   1;32\r\nCyan         0;36     Light Cyan    1;36\r\nRed          0;31     Light Red     1;31\r\nPurple       0;35     Light Purple  1;35\r\nBrown/Orange 0;33     Yellow        1;33\r\nLight Gray   0;37     White         1;37\r\n\r\nProposed color scheme follows:\r\n* [ERROR] is   Light Red     1;31\r\n* [INFO] is   Light Cyan    1;36\r\n* start/done notice is Light Green   1;32\r\n*NC is no color\r\n\r\nRED='\\033[0;31m'\r\nNC='\\033[0m' # No Color\r\nprintf \"I ${RED}love${NC} Stack Overflow\\n\"\r\n"},"comment":{"url":"https://api.github.com/repos/bateman/filebotology/issues/comments/111724309","html_url":"https://github.com/bateman/filebotology/issues/9#issuecomment-111724309","issue_url":"https://api.github.com/repos/bateman/filebotology/issues/9","id":111724309,"user":{"login":"bateman","id":52096,"avatar_url":"https://avatars.githubusercontent.com/u/52096?v=3","gravatar_id":"","url":"https://api.github.com/users/bateman","html_url":"https://github.com/bateman","followers_url":"https://api.github.com/users/bateman/followers","following_url":"https://api.github.com/users/bateman/following{/other_user}","gists_url":"https://api.github.com/users/bateman/gists{/gist_id}","starred_url":"https://api.github.com/users/bateman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bateman/subscriptions","organizations_url":"https://api.github.com/users/bateman/orgs","repos_url":"https://api.github.com/users/bateman/repos","events_url":"https://api.github.com/users/bateman/events{/privacy}","received_events_url":"https://api.github.com/users/bateman/received_events","type":"User","site_admin":false},"created_at":"2015-06-13T16:03:29Z","updated_at":"2015-06-13T16:03:29Z","body":"it would be better to customize the print() function to get a second param $2 with the level of output\r\nERROR\r\nINFO\r\nTASK"}}