{"action":"created","issue":{"url":"https://api.github.com/repos/satoshinm/NetCraft/issues/129","repository_url":"https://api.github.com/repos/satoshinm/NetCraft","labels_url":"https://api.github.com/repos/satoshinm/NetCraft/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/satoshinm/NetCraft/issues/129/comments","events_url":"https://api.github.com/repos/satoshinm/NetCraft/issues/129/events","html_url":"https://github.com/satoshinm/NetCraft/pull/129","id":228601852,"number":129,"title":"Add scrollable chat console (up/down keys). Closes GH-83","user":{"login":"satoshinm","id":26856618,"avatar_url":"https://avatars1.githubusercontent.com/u/26856618?v=3","gravatar_id":"","url":"https://api.github.com/users/satoshinm","html_url":"https://github.com/satoshinm","followers_url":"https://api.github.com/users/satoshinm/followers","following_url":"https://api.github.com/users/satoshinm/following{/other_user}","gists_url":"https://api.github.com/users/satoshinm/gists{/gist_id}","starred_url":"https://api.github.com/users/satoshinm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satoshinm/subscriptions","organizations_url":"https://api.github.com/users/satoshinm/orgs","repos_url":"https://api.github.com/users/satoshinm/repos","events_url":"https://api.github.com/users/satoshinm/events{/privacy}","received_events_url":"https://api.github.com/users/satoshinm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-15T04:08:26Z","updated_at":"2017-05-21T03:45:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/satoshinm/NetCraft/pulls/129","html_url":"https://github.com/satoshinm/NetCraft/pull/129","diff_url":"https://github.com/satoshinm/NetCraft/pull/129.diff","patch_url":"https://github.com/satoshinm/NetCraft/pull/129.patch"},"body":"https://github.com/satoshinm/NetCraft/issues Scrolling up to view chat history"},"comment":{"url":"https://api.github.com/repos/satoshinm/NetCraft/issues/comments/302913205","html_url":"https://github.com/satoshinm/NetCraft/pull/129#issuecomment-302913205","issue_url":"https://api.github.com/repos/satoshinm/NetCraft/issues/129","id":302913205,"user":{"login":"satoshinm","id":26856618,"avatar_url":"https://avatars1.githubusercontent.com/u/26856618?v=3","gravatar_id":"","url":"https://api.github.com/users/satoshinm","html_url":"https://github.com/satoshinm","followers_url":"https://api.github.com/users/satoshinm/followers","following_url":"https://api.github.com/users/satoshinm/following{/other_user}","gists_url":"https://api.github.com/users/satoshinm/gists{/gist_id}","starred_url":"https://api.github.com/users/satoshinm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satoshinm/subscriptions","organizations_url":"https://api.github.com/users/satoshinm/orgs","repos_url":"https://api.github.com/users/satoshinm/repos","events_url":"https://api.github.com/users/satoshinm/events{/privacy}","received_events_url":"https://api.github.com/users/satoshinm/received_events","type":"User","site_admin":false},"created_at":"2017-05-21T03:45:35Z","updated_at":"2017-05-21T03:45:35Z","body":"Simulated console for debugging:\r\n```diff\r\n@@ -1911,24 +1911,6 @@ void add_message(const char *text) {\r\n  \r\n      g->message_view_index = g->message_index - MAX_VISIBLE_MESSAGES;\r\n      if (g->message_view_index < 0) g->message_view_index += MAX_MESSAGES;\r\n -\r\n -    printf(\"---\\n\");\r\n -    for (int i = 0; i < MAX_MESSAGES; ++i) {\r\n -        if (g->messages[i] && *g->messages[i]) {\r\n -            printf(\"%s%s %d. %s\\n\",\r\n -                    (i == g->message_index ? \"i\" : \" \"),\r\n -                    (i == g->message_view_index ? \"v\" : \" \"),\r\n -                    i, g->messages[i]);\r\n -        }\r\n -    }\r\n -    printf(\"---\\n\");\r\n -    // SHOW_CHAT_TEXT\r\n -    printf(\"Simulated console: (g->message_index=%d)\\n\", g->message_index);\r\n -    for (int i = 0; i < MAX_VISIBLE_MESSAGES; i++) {\r\n -        int index = (g->message_view_index + i) % MAX_MESSAGES;\r\n -        //index = (index + g->message_view_index) % MAX_MESSAGES;\r\n -        printf(\"LINE(i=%d, index=%d): %s\\n\", i, index, g->messages[index]);\r\n -    }\r\n  }\r\n```"}}
{"actor":{"display_login":"satoshinm"}}