{"action":"created","comment":{"url":"https://api.github.com/repos/eclipse/golo-lang/pulls/comments/45108070","id":45108070,"diff_hunk":"@@ -0,0 +1,64 @@\n+# ............................................................................................... #\n+#\n+# Copyright (c) 2012-2015 Institut National des Sciences Appliquées de Lyon (INSA-Lyon)\n+#\n+# All rights reserved. This program and the accompanying materials\n+# are made available under the terms of the Eclipse Public License v1.0\n+# which accompanies this distribution, and is available at\n+# http://www.eclipse.org/legal/epl-v10.html\n+#\n+# ............................................................................................... #\n+\n+----\n+This module provides helper functions to deal with ANSI escape codes for console outputs.\n+\n+All function names are self-explanatory. Note that `ansi_likely_supported` tests if the current\n+operating system is _likely_ to support ANSI codes. It merely checks that the host operating\n+system is not MS Windows.\n+\n+See also: [Wikipedia on ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code)\n+----\n+module gololang.AnsiCodes\n+\n+function ansi_likely_supported = ->\n+  not System.getProperty(\"os.name\"): contains(\"Windows\")","path":"src/main/golo/ansicodes.golo","position":24,"original_position":24,"commit_id":"161392423e5aefabf6d1db230654ef77da71ee7e","original_commit_id":"161392423e5aefabf6d1db230654ef77da71ee7e","user":{"login":"danielpetisme","id":593564,"avatar_url":"https://avatars.githubusercontent.com/u/593564?v=3","gravatar_id":"","url":"https://api.github.com/users/danielpetisme","html_url":"https://github.com/danielpetisme","followers_url":"https://api.github.com/users/danielpetisme/followers","following_url":"https://api.github.com/users/danielpetisme/following{/other_user}","gists_url":"https://api.github.com/users/danielpetisme/gists{/gist_id}","starred_url":"https://api.github.com/users/danielpetisme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielpetisme/subscriptions","organizations_url":"https://api.github.com/users/danielpetisme/orgs","repos_url":"https://api.github.com/users/danielpetisme/repos","events_url":"https://api.github.com/users/danielpetisme/events{/privacy}","received_events_url":"https://api.github.com/users/danielpetisme/received_events","type":"User","site_admin":false},"body":"why so much hate for windows\r\nhttps://github.com/adoxa/ansicon\r\npersonally I use it with cygwin, it works like a charm","created_at":"2015-11-17T19:33:23Z","updated_at":"2015-11-17T19:33:23Z","html_url":"https://github.com/eclipse/golo-lang/pull/314#discussion_r45108070","pull_request_url":"https://api.github.com/repos/eclipse/golo-lang/pulls/314","_links":{"self":{"href":"https://api.github.com/repos/eclipse/golo-lang/pulls/comments/45108070"},"html":{"href":"https://github.com/eclipse/golo-lang/pull/314#discussion_r45108070"},"pull_request":{"href":"https://api.github.com/repos/eclipse/golo-lang/pulls/314"}}},"pull_request":{"url":"https://api.github.com/repos/eclipse/golo-lang/pulls/314","id":50953788,"html_url":"https://github.com/eclipse/golo-lang/pull/314","diff_url":"https://github.com/eclipse/golo-lang/pull/314.diff","patch_url":"https://github.com/eclipse/golo-lang/pull/314.patch","issue_url":"https://api.github.com/repos/eclipse/golo-lang/issues/314","number":314,"state":"open","locked":false,"title":"Console ANSI codes support","user":{"login":"jponge","id":25961,"avatar_url":"https://avatars.githubusercontent.com/u/25961?v=3","gravatar_id":"","url":"https://api.github.com/users/jponge","html_url":"https://github.com/jponge","followers_url":"https://api.github.com/users/jponge/followers","following_url":"https://api.github.com/users/jponge/following{/other_user}","gists_url":"https://api.github.com/users/jponge/gists{/gist_id}","starred_url":"https://api.github.com/users/jponge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jponge/subscriptions","organizations_url":"https://api.github.com/users/jponge/orgs","repos_url":"https://api.github.com/users/jponge/repos","events_url":"https://api.github.com/users/jponge/events{/privacy}","received_events_url":"https://api.github.com/users/jponge/received_events","type":"User","site_admin":false},"body":"See [482373]","created_at":"2015-11-17T14:33:54Z","updated_at":"2015-11-17T19:33:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6fd77433f373e6e6e789f7e584a64c058a78f256","assignee":null,"milestone":{"url":"https://api.github.com/repos/eclipse/golo-lang/milestones/16","html_url":"https://github.com/eclipse/golo-lang/milestones/3.1.0","labels_url":"https://api.github.com/repos/eclipse/golo-lang/milestones/16/labels","id":1397347,"number":16,"title":"3.1.0","description":"Golo 3.1.0","creator":{"login":"jponge","id":25961,"avatar_url":"https://avatars.githubusercontent.com/u/25961?v=3","gravatar_id":"","url":"https://api.github.com/users/jponge","html_url":"https://github.com/jponge","followers_url":"https://api.github.com/users/jponge/followers","following_url":"https://api.github.com/users/jponge/following{/other_user}","gists_url":"https://api.github.com/users/jponge/gists{/gist_id}","starred_url":"https://api.github.com/users/jponge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jponge/subscriptions","organizations_url":"https://api.github.com/users/jponge/orgs","repos_url":"https://api.github.com/users/jponge/repos","events_url":"https://api.github.com/users/jponge/events{/privacy}","received_events_url":"https://api.github.com/users/jponge/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":2,"state":"open","created_at":"2015-11-06T09:34:01Z","updated_at":"2015-11-17T14:34:10Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/eclipse/golo-lang/pulls/314/commits","review_comments_url":"https://api.github.com/repos/eclipse/golo-lang/pulls/314/comments","review_comment_url":"https://api.github.com/repos/eclipse/golo-lang/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eclipse/golo-lang/issues/314/comments","statuses_url":"https://api.github.com/repos/eclipse/golo-lang/statuses/161392423e5aefabf6d1db230654ef77da71ee7e","head":{"label":"jponge:feature/ansicodes","ref":"feature/ansicodes","sha":"161392423e5aefabf6d1db230654ef77da71ee7e","user":{"login":"jponge","id":25961,"avatar_url":"https://avatars.githubusercontent.com/u/25961?v=3","gravatar_id":"","url":"https://api.github.com/users/jponge","html_url":"https://github.com/jponge","followers_url":"https://api.github.com/users/jponge/followers","following_url":"https://api.github.com/users/jponge/following{/other_user}","gists_url":"https://api.github.com/users/jponge/gists{/gist_id}","starred_url":"https://api.github.com/users/jponge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jponge/subscriptions","organizations_url":"https://api.github.com/users/jponge/orgs","repos_url":"https://api.github.com/users/jponge/repos","events_url":"https://api.github.com/users/jponge/events{/privacy}","received_events_url":"https://api.github.com/users/jponge/received_events","type":"User","site_admin":false},"repo":{"id":9073317,"name":"golo-lang","full_name":"jponge/golo-lang","owner":{"login":"jponge","id":25961,"avatar_url":"https://avatars.githubusercontent.com/u/25961?v=3","gravatar_id":"","url":"https://api.github.com/users/jponge","html_url":"https://github.com/jponge","followers_url":"https://api.github.com/users/jponge/followers","following_url":"https://api.github.com/users/jponge/following{/other_user}","gists_url":"https://api.github.com/users/jponge/gists{/gist_id}","starred_url":"https://api.github.com/users/jponge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jponge/subscriptions","organizations_url":"https://api.github.com/users/jponge/orgs","repos_url":"https://api.github.com/users/jponge/repos","events_url":"https://api.github.com/users/jponge/events{/privacy}","received_events_url":"https://api.github.com/users/jponge/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jponge/golo-lang","description":"My Golo development repository. Branches are work in progress and are subject to \"rebase\" and \"push force\" anytime.","fork":true,"url":"https://api.github.com/repos/jponge/golo-lang","forks_url":"https://api.github.com/repos/jponge/golo-lang/forks","keys_url":"https://api.github.com/repos/jponge/golo-lang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jponge/golo-lang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jponge/golo-lang/teams","hooks_url":"https://api.github.com/repos/jponge/golo-lang/hooks","issue_events_url":"https://api.github.com/repos/jponge/golo-lang/issues/events{/number}","events_url":"https://api.github.com/repos/jponge/golo-lang/events","assignees_url":"https://api.github.com/repos/jponge/golo-lang/assignees{/user}","branches_url":"https://api.github.com/repos/jponge/golo-lang/branches{/branch}","tags_url":"https://api.github.com/repos/jponge/golo-lang/tags","blobs_url":"https://api.github.com/repos/jponge/golo-lang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jponge/golo-lang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jponge/golo-lang/git/refs{/sha}","trees_url":"https://api.github.com/repos/jponge/golo-lang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jponge/golo-lang/statuses/{sha}","languages_url":"https://api.github.com/repos/jponge/golo-lang/languages","stargazers_url":"https://api.github.com/repos/jponge/golo-lang/stargazers","contributors_url":"https://api.github.com/repos/jponge/golo-lang/contributors","subscribers_url":"https://api.github.com/repos/jponge/golo-lang/subscribers","subscription_url":"https://api.github.com/repos/jponge/golo-lang/subscription","commits_url":"https://api.github.com/repos/jponge/golo-lang/commits{/sha}","git_commits_url":"https://api.github.com/repos/jponge/golo-lang/git/commits{/sha}","comments_url":"https://api.github.com/repos/jponge/golo-lang/comments{/number}","issue_comment_url":"https://api.github.com/repos/jponge/golo-lang/issues/comments{/number}","contents_url":"https://api.github.com/repos/jponge/golo-lang/contents/{+path}","compare_url":"https://api.github.com/repos/jponge/golo-lang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jponge/golo-lang/merges","archive_url":"https://api.github.com/repos/jponge/golo-lang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jponge/golo-lang/downloads","issues_url":"https://api.github.com/repos/jponge/golo-lang/issues{/number}","pulls_url":"https://api.github.com/repos/jponge/golo-lang/pulls{/number}","milestones_url":"https://api.github.com/repos/jponge/golo-lang/milestones{/number}","notifications_url":"https://api.github.com/repos/jponge/golo-lang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jponge/golo-lang/labels{/name}","releases_url":"https://api.github.com/repos/jponge/golo-lang/releases{/id}","created_at":"2013-03-28T08:51:53Z","updated_at":"2015-08-12T16:48:25Z","pushed_at":"2015-11-17T14:31:57Z","git_url":"git://github.com/jponge/golo-lang.git","ssh_url":"git@github.com:jponge/golo-lang.git","clone_url":"https://github.com/jponge/golo-lang.git","svn_url":"https://github.com/jponge/golo-lang","homepage":"http://golo-lang.org/","size":4709,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"eclipse:master","ref":"master","sha":"47c04720fe941af97bcf39b722640c2a81d60775","user":{"login":"eclipse","id":56974,"avatar_url":"https://avatars.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"repo":{"id":8340103,"name":"golo-lang","full_name":"eclipse/golo-lang","owner":{"login":"eclipse","id":56974,"avatar_url":"https://avatars.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eclipse/golo-lang","description":"Golo - a lightweight dynamic language for the JVM.","fork":false,"url":"https://api.github.com/repos/eclipse/golo-lang","forks_url":"https://api.github.com/repos/eclipse/golo-lang/forks","keys_url":"https://api.github.com/repos/eclipse/golo-lang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclipse/golo-lang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclipse/golo-lang/teams","hooks_url":"https://api.github.com/repos/eclipse/golo-lang/hooks","issue_events_url":"https://api.github.com/repos/eclipse/golo-lang/issues/events{/number}","events_url":"https://api.github.com/repos/eclipse/golo-lang/events","assignees_url":"https://api.github.com/repos/eclipse/golo-lang/assignees{/user}","branches_url":"https://api.github.com/repos/eclipse/golo-lang/branches{/branch}","tags_url":"https://api.github.com/repos/eclipse/golo-lang/tags","blobs_url":"https://api.github.com/repos/eclipse/golo-lang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclipse/golo-lang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclipse/golo-lang/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclipse/golo-lang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclipse/golo-lang/statuses/{sha}","languages_url":"https://api.github.com/repos/eclipse/golo-lang/languages","stargazers_url":"https://api.github.com/repos/eclipse/golo-lang/stargazers","contributors_url":"https://api.github.com/repos/eclipse/golo-lang/contributors","subscribers_url":"https://api.github.com/repos/eclipse/golo-lang/subscribers","subscription_url":"https://api.github.com/repos/eclipse/golo-lang/subscription","commits_url":"https://api.github.com/repos/eclipse/golo-lang/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclipse/golo-lang/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclipse/golo-lang/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclipse/golo-lang/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclipse/golo-lang/contents/{+path}","compare_url":"https://api.github.com/repos/eclipse/golo-lang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclipse/golo-lang/merges","archive_url":"https://api.github.com/repos/eclipse/golo-lang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclipse/golo-lang/downloads","issues_url":"https://api.github.com/repos/eclipse/golo-lang/issues{/number}","pulls_url":"https://api.github.com/repos/eclipse/golo-lang/pulls{/number}","milestones_url":"https://api.github.com/repos/eclipse/golo-lang/milestones{/number}","notifications_url":"https://api.github.com/repos/eclipse/golo-lang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclipse/golo-lang/labels{/name}","releases_url":"https://api.github.com/repos/eclipse/golo-lang/releases{/id}","created_at":"2013-02-21T17:25:34Z","updated_at":"2015-11-13T22:35:27Z","pushed_at":"2015-11-17T14:33:54Z","git_url":"git://github.com/eclipse/golo-lang.git","ssh_url":"git@github.com:eclipse/golo-lang.git","clone_url":"https://github.com/eclipse/golo-lang.git","svn_url":"https://github.com/eclipse/golo-lang","homepage":"http://golo-lang.org/","size":6899,"stargazers_count":129,"watchers_count":129,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":24,"forks":42,"open_issues":24,"watchers":129,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eclipse/golo-lang/pulls/314"},"html":{"href":"https://github.com/eclipse/golo-lang/pull/314"},"issue":{"href":"https://api.github.com/repos/eclipse/golo-lang/issues/314"},"comments":{"href":"https://api.github.com/repos/eclipse/golo-lang/issues/314/comments"},"review_comments":{"href":"https://api.github.com/repos/eclipse/golo-lang/pulls/314/comments"},"review_comment":{"href":"https://api.github.com/repos/eclipse/golo-lang/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eclipse/golo-lang/pulls/314/commits"},"statuses":{"href":"https://api.github.com/repos/eclipse/golo-lang/statuses/161392423e5aefabf6d1db230654ef77da71ee7e"}}}}