{"action":"created","issue":{"url":"https://api.github.com/repos/imagej/imagej-launcher/issues/29","labels_url":"https://api.github.com/repos/imagej/imagej-launcher/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/imagej/imagej-launcher/issues/29/comments","events_url":"https://api.github.com/repos/imagej/imagej-launcher/issues/29/events","html_url":"https://github.com/imagej/imagej-launcher/issues/29","id":62776421,"number":29,"title":"Use --console logic automatically on Windows","user":{"login":"ctrueden","id":556626,"avatar_url":"https://avatars.githubusercontent.com/u/556626?v=3","gravatar_id":"","url":"https://api.github.com/users/ctrueden","html_url":"https://github.com/ctrueden","followers_url":"https://api.github.com/users/ctrueden/followers","following_url":"https://api.github.com/users/ctrueden/following{/other_user}","gists_url":"https://api.github.com/users/ctrueden/gists{/gist_id}","starred_url":"https://api.github.com/users/ctrueden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctrueden/subscriptions","organizations_url":"https://api.github.com/users/ctrueden/orgs","repos_url":"https://api.github.com/users/ctrueden/repos","events_url":"https://api.github.com/users/ctrueden/events{/privacy}","received_events_url":"https://api.github.com/users/ctrueden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-18T19:16:40Z","updated_at":"2015-03-23T22:19:45Z","closed_at":null,"body":"In many scenarios on Windows, it is necessary to pass the `--console` flag so that the console it attached correctly. Otherwise, no output will ever been shown.\r\n\r\nThis flag is unfortunate, and it would be best if we could get rid of it completely. But barring that, let's at least be smarter about automatically enabling the console attach feature in circumstances where it is known to be necessary, such as with `--headless`.\r\n\r\nSee also #10, #11."},"comment":{"url":"https://api.github.com/repos/imagej/imagej-launcher/issues/comments/85229356","html_url":"https://github.com/imagej/imagej-launcher/issues/29#issuecomment-85229356","issue_url":"https://api.github.com/repos/imagej/imagej-launcher/issues/29","id":85229356,"user":{"login":"ctrueden","id":556626,"avatar_url":"https://avatars.githubusercontent.com/u/556626?v=3","gravatar_id":"","url":"https://api.github.com/users/ctrueden","html_url":"https://github.com/ctrueden","followers_url":"https://api.github.com/users/ctrueden/followers","following_url":"https://api.github.com/users/ctrueden/following{/other_user}","gists_url":"https://api.github.com/users/ctrueden/gists{/gist_id}","starred_url":"https://api.github.com/users/ctrueden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctrueden/subscriptions","organizations_url":"https://api.github.com/users/ctrueden/orgs","repos_url":"https://api.github.com/users/ctrueden/repos","events_url":"https://api.github.com/users/ctrueden/events{/privacy}","received_events_url":"https://api.github.com/users/ctrueden/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T22:19:45Z","updated_at":"2015-03-23T22:19:45Z","body":"@dscho Sorry for the \"undocumented\" comment—I ran with `--help` on my Mac and didn't see the option, so I made an ass out of U and me.\r\n\r\nThanks for explaining some of the difficulties if the situation is to improve. So it seems research will be needed into how to robustly avoid violating the Least Astonishment Principle in various circumstances. Quick searches seem to indicate it might be possible to attach a console without necessarily creating one (e.g., [this API call in C++](https://msdn.microsoft.com/en-us/library/windows/desktop/ms681952%28v=vs.85%29.aspx) purports to do so)."}}