{"action":"created","issue":{"url":"https://api.github.com/repos/JakeWharton/pidcat/issues/122","repository_url":"https://api.github.com/repos/JakeWharton/pidcat","labels_url":"https://api.github.com/repos/JakeWharton/pidcat/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/JakeWharton/pidcat/issues/122/comments","events_url":"https://api.github.com/repos/JakeWharton/pidcat/issues/122/events","html_url":"https://github.com/JakeWharton/pidcat/issues/122","id":124447457,"number":122,"title":"in windows,how to use? search anywhere,nothing.","user":{"login":"linghp","id":4318830,"avatar_url":"https://avatars1.githubusercontent.com/u/4318830?v=4","gravatar_id":"","url":"https://api.github.com/users/linghp","html_url":"https://github.com/linghp","followers_url":"https://api.github.com/users/linghp/followers","following_url":"https://api.github.com/users/linghp/following{/other_user}","gists_url":"https://api.github.com/users/linghp/gists{/gist_id}","starred_url":"https://api.github.com/users/linghp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linghp/subscriptions","organizations_url":"https://api.github.com/users/linghp/orgs","repos_url":"https://api.github.com/users/linghp/repos","events_url":"https://api.github.com/users/linghp/events{/privacy}","received_events_url":"https://api.github.com/users/linghp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2015-12-31T08:33:37Z","updated_at":"2018-02-04T08:16:12Z","closed_at":null,"author_association":"NONE","body":""},"comment":{"url":"https://api.github.com/repos/JakeWharton/pidcat/issues/comments/362889269","html_url":"https://github.com/JakeWharton/pidcat/issues/122#issuecomment-362889269","issue_url":"https://api.github.com/repos/JakeWharton/pidcat/issues/122","id":362889269,"user":{"login":"Torvin","id":3890785,"avatar_url":"https://avatars2.githubusercontent.com/u/3890785?v=4","gravatar_id":"","url":"https://api.github.com/users/Torvin","html_url":"https://github.com/Torvin","followers_url":"https://api.github.com/users/Torvin/followers","following_url":"https://api.github.com/users/Torvin/following{/other_user}","gists_url":"https://api.github.com/users/Torvin/gists{/gist_id}","starred_url":"https://api.github.com/users/Torvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Torvin/subscriptions","organizations_url":"https://api.github.com/users/Torvin/orgs","repos_url":"https://api.github.com/users/Torvin/repos","events_url":"https://api.github.com/users/Torvin/events{/privacy}","received_events_url":"https://api.github.com/users/Torvin/received_events","type":"User","site_admin":false},"created_at":"2018-02-04T08:16:12Z","updated_at":"2018-02-04T08:16:12Z","author_association":"NONE","body":"I added this to the script to enable native VT100 support on Windows 10:\r\n\r\n```python\r\nfrom ctypes import *\r\n\r\ndef enableVT100():\r\n  STD_OUTPUT_HANDLE = -11\r\n  ENABLE_VIRTUAL_TERMINAL_PROCESSING = 4\r\n\r\n  stdout = windll.kernel32.GetStdHandle(STD_OUTPUT_HANDLE)\r\n  if stdout == -1:\r\n    raise WinError()\r\n\r\n  mode = c_uint()\r\n  if windll.kernel32.GetConsoleMode(stdout, byref(mode)) == 0:\r\n    raise WinError()\r\n\r\n  mode.value = mode.value | ENABLE_VIRTUAL_TERMINAL_PROCESSING\r\n\r\n  if windll.kernel32.SetConsoleMode(stdout, mode) == 0:\r\n    raise WinError()\r\n\r\nenableVT100()\r\n```\r\n\r\nTested on Window 10 v1709, worked like a charm"}}
{"actor":{"display_login":"Torvin"}}