{"action":"created","issue":{"url":"https://api.github.com/repos/circulosmeos/circle/issues/2","repository_url":"https://api.github.com/repos/circulosmeos/circle","labels_url":"https://api.github.com/repos/circulosmeos/circle/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/circulosmeos/circle/issues/2/comments","events_url":"https://api.github.com/repos/circulosmeos/circle/issues/2/events","html_url":"https://github.com/circulosmeos/circle/pull/2","id":196004439,"number":2,"title":"Fix terminal colour side-effect","user":{"login":"quozl","id":2936481,"avatar_url":"https://avatars.githubusercontent.com/u/2936481?v=3","gravatar_id":"","url":"https://api.github.com/users/quozl","html_url":"https://github.com/quozl","followers_url":"https://api.github.com/users/quozl/followers","following_url":"https://api.github.com/users/quozl/following{/other_user}","gists_url":"https://api.github.com/users/quozl/gists{/gist_id}","starred_url":"https://api.github.com/users/quozl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quozl/subscriptions","organizations_url":"https://api.github.com/users/quozl/orgs","repos_url":"https://api.github.com/users/quozl/repos","events_url":"https://api.github.com/users/quozl/events{/privacy}","received_events_url":"https://api.github.com/users/quozl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-16T08:22:49Z","updated_at":"2016-12-19T04:28:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/circulosmeos/circle/pulls/2","html_url":"https://github.com/circulosmeos/circle/pull/2","diff_url":"https://github.com/circulosmeos/circle/pull/2.diff","patch_url":"https://github.com/circulosmeos/circle/pull/2.patch"},"body":"Colour was always forced to white.\r\n\r\nDiscovered while using Debian package of version 2.4."},"comment":{"url":"https://api.github.com/repos/circulosmeos/circle/issues/comments/267879632","html_url":"https://github.com/circulosmeos/circle/pull/2#issuecomment-267879632","issue_url":"https://api.github.com/repos/circulosmeos/circle/issues/2","id":267879632,"user":{"login":"quozl","id":2936481,"avatar_url":"https://avatars.githubusercontent.com/u/2936481?v=3","gravatar_id":"","url":"https://api.github.com/users/quozl","html_url":"https://github.com/quozl","followers_url":"https://api.github.com/users/quozl/followers","following_url":"https://api.github.com/users/quozl/following{/other_user}","gists_url":"https://api.github.com/users/quozl/gists{/gist_id}","starred_url":"https://api.github.com/users/quozl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quozl/subscriptions","organizations_url":"https://api.github.com/users/quozl/orgs","repos_url":"https://api.github.com/users/quozl/repos","events_url":"https://api.github.com/users/quozl/events{/privacy}","received_events_url":"https://api.github.com/users/quozl/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T04:28:16Z","updated_at":"2016-12-19T04:28:16Z","body":"@circulosmeos, thanks for review.\r\n\r\n* for a101474, `\\033[` or `\\0x1B[` are the same 7-bit control sequence introducer, or [CSI](https://en.wikipedia.org/wiki/ANSI_escape_code#Sequence_elements), `CSI m` is the Select Graphic Rendition control code, and there is no functional difference between `CSI 0m` and `CSI m`, as the default value of the parameter is zero,\r\n\r\n* for 7d1f3e6, you can reproduce the problem using `xterm -bg black -fg Cyan`, see below;\r\n\r\n![bytes-circle-xterm](https://cloud.githubusercontent.com/assets/2936481/21301044/dbc62474-c5fd-11e6-81d0-a9a4ba2a8784.png)\r\n\r\nThe colour of the shell prompt has changed from Cyan to White, because the last SGR sent said so.  After 7d1f3e6, the colour is reset to the terminal default, in this test Cyan.\r\n\r\nBefore 7d1f3e6 the final output of `circle` piped through `od -a` is;\r\n\r\n```\r\n0003460  sp  sp  sp  sp  sp  sp  sp  sp  sp  sp  sp  sp  sp  sp  sp  nl\r\n0003500 esc   [   0   m esc   [   3   7   m   f   i   l   e  sp   =  ht   <-- SGR\r\n0003520   s   t   d   i   n  nl   m   e   a   n  sp   =  ht   0   .   0\r\n0003540   2   0  nl   s   i   g   m   a   =  sp  ht   0   .   1   6   4\r\n0003560  sp  sp   (  sp   C   V   =  sp   8   4   0   .   7   1   4   0\r\n0003600   %  sp   )  nl   s   i   z   e  sp   =  ht   5   .   0   0  sp\r\n0003620   b   y   t   e   s   ,  sp  sp   (   5  sp   b   y   t   e   s\r\n0003640   )  nl\r\n\r\n```\r\n\r\nHope that helps."}}
{"actor":{"display_login":"quozl"}}