{"action":"created","issue":{"url":"https://api.github.com/repos/laurentpetit/ccw/issues/665","labels_url":"https://api.github.com/repos/laurentpetit/ccw/issues/665/labels{/name}","comments_url":"https://api.github.com/repos/laurentpetit/ccw/issues/665/comments","events_url":"https://api.github.com/repos/laurentpetit/ccw/issues/665/events","html_url":"https://github.com/laurentpetit/ccw/issues/665","id":62164569,"number":665,"title":"ANSI-compatible REPL output","user":{"login":"laurentpetit","id":98286,"avatar_url":"https://avatars.githubusercontent.com/u/98286?v=3","gravatar_id":"","url":"https://api.github.com/users/laurentpetit","html_url":"https://github.com/laurentpetit","followers_url":"https://api.github.com/users/laurentpetit/followers","following_url":"https://api.github.com/users/laurentpetit/following{/other_user}","gists_url":"https://api.github.com/users/laurentpetit/gists{/gist_id}","starred_url":"https://api.github.com/users/laurentpetit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurentpetit/subscriptions","organizations_url":"https://api.github.com/users/laurentpetit/orgs","repos_url":"https://api.github.com/users/laurentpetit/repos","events_url":"https://api.github.com/users/laurentpetit/events{/privacy}","received_events_url":"https://api.github.com/users/laurentpetit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/laurentpetit/ccw/labels/feature","name":"feature","color":"bfe5bf"},{"url":"https://api.github.com/repos/laurentpetit/ccw/labels/To%20Review","name":"To Review","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"laurentpetit","id":98286,"avatar_url":"https://avatars.githubusercontent.com/u/98286?v=3","gravatar_id":"","url":"https://api.github.com/users/laurentpetit","html_url":"https://github.com/laurentpetit","followers_url":"https://api.github.com/users/laurentpetit/followers","following_url":"https://api.github.com/users/laurentpetit/following{/other_user}","gists_url":"https://api.github.com/users/laurentpetit/gists{/gist_id}","starred_url":"https://api.github.com/users/laurentpetit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurentpetit/subscriptions","organizations_url":"https://api.github.com/users/laurentpetit/orgs","repos_url":"https://api.github.com/users/laurentpetit/repos","events_url":"https://api.github.com/users/laurentpetit/events{/privacy}","received_events_url":"https://api.github.com/users/laurentpetit/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/laurentpetit/ccw/milestones/1","html_url":"https://github.com/laurentpetit/ccw/milestones/0.32.0","labels_url":"https://api.github.com/repos/laurentpetit/ccw/milestones/1/labels","id":1033063,"number":1,"title":"0.32.0","description":"","creator":{"login":"laurentpetit","id":98286,"avatar_url":"https://avatars.githubusercontent.com/u/98286?v=3","gravatar_id":"","url":"https://api.github.com/users/laurentpetit","html_url":"https://github.com/laurentpetit","followers_url":"https://api.github.com/users/laurentpetit/followers","following_url":"https://api.github.com/users/laurentpetit/following{/other_user}","gists_url":"https://api.github.com/users/laurentpetit/gists{/gist_id}","starred_url":"https://api.github.com/users/laurentpetit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurentpetit/subscriptions","organizations_url":"https://api.github.com/users/laurentpetit/orgs","repos_url":"https://api.github.com/users/laurentpetit/repos","events_url":"https://api.github.com/users/laurentpetit/events{/privacy}","received_events_url":"https://api.github.com/users/laurentpetit/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":49,"state":"open","created_at":"2015-03-22T22:18:56Z","updated_at":"2015-07-22T08:41:41Z","due_on":null,"closed_at":null},"comments":15,"created_at":"2015-03-16T18:00:55Z","updated_at":"2015-07-22T11:51:16Z","closed_at":null,"body":"Original [issue 624](https://code.google.com/p/counterclockwise/issues/detail?id=624) created by laurentpetit on 2014-03-27T14:00:09.000Z:\n\nfrom fmjrey:\r\nAptana Studio 3 has a nice built-in terminal, which acts exactly as a console with proper VT100/ANSI code display. \r\nHowever I think proper rendering could easily be implemented in CCW by using the same hack used by AnsiConsole:\r\nhttps://github.com/mihnita/ansi-econsole/blob/master/AnsiConsole/src/mnita/ansiconsole/participants/AnsiConsolePageParticipant.java\r\nIn other words you probably just need to define a listener similar to AnsiConsoleStyleListener and add it to your StyledText widget in ccw.repl.REPLView:\r\nREPLStyleListener myListener = new REPLStyleListener();\r\nviewerWidget.addLineStyleListener(myListener);\r\n\r\nneed from Mark Engelberg:\r\nOn a related note, the same blog post describes a library for pretty-printing stacktraces:\r\nhttps://github.com/AvisoNovate/pretty\r\nI'm curious to try it, but the color codes it uses seem to generate garbage in the REPL.  Is there some setting that will make this work?\r\n\r\nI guess it's targetting textual consoles, and maybe even more specifically Linux/Unix textual consoles ?\r\n\r\nDon't know the library, must take the time to play with it. \r\n"},"comment":{"url":"https://api.github.com/repos/laurentpetit/ccw/issues/comments/123690127","html_url":"https://github.com/laurentpetit/ccw/issues/665#issuecomment-123690127","issue_url":"https://api.github.com/repos/laurentpetit/ccw/issues/665","id":123690127,"user":{"login":"laurentpetit","id":98286,"avatar_url":"https://avatars.githubusercontent.com/u/98286?v=3","gravatar_id":"","url":"https://api.github.com/users/laurentpetit","html_url":"https://github.com/laurentpetit","followers_url":"https://api.github.com/users/laurentpetit/followers","following_url":"https://api.github.com/users/laurentpetit/following{/other_user}","gists_url":"https://api.github.com/users/laurentpetit/gists{/gist_id}","starred_url":"https://api.github.com/users/laurentpetit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurentpetit/subscriptions","organizations_url":"https://api.github.com/users/laurentpetit/orgs","repos_url":"https://api.github.com/users/laurentpetit/repos","events_url":"https://api.github.com/users/laurentpetit/events{/privacy}","received_events_url":"https://api.github.com/users/laurentpetit/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T11:51:16Z","updated_at":"2015-07-22T11:51:16Z","body":"found the repo\n\n2015-07-22 13:48 GMT+02:00 Andrea Richiardi <notifications@github.com>:\n\n> Yes it's great and displays well in ccw with ansi...sorry I do not have\n> stable connection today and I could not immediately link the repo\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/laurentpetit/ccw/issues/665#issuecomment-123688782>.\n>\n\n\n\n-- \nLaurent Petit\n"}}