{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/console/issues/88","repository_url":"https://api.github.com/repos/Microsoft/console","labels_url":"https://api.github.com/repos/Microsoft/console/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/console/issues/88/comments","events_url":"https://api.github.com/repos/Microsoft/console/issues/88/events","html_url":"https://github.com/Microsoft/console/issues/88","id":297651478,"number":88,"title":"In terminal emulators, bash fails to render correct background color","user":{"login":"bitcrazed","id":961950,"avatar_url":"https://avatars1.githubusercontent.com/u/961950?v=4","gravatar_id":"","url":"https://api.github.com/users/bitcrazed","html_url":"https://github.com/bitcrazed","followers_url":"https://api.github.com/users/bitcrazed/followers","following_url":"https://api.github.com/users/bitcrazed/following{/other_user}","gists_url":"https://api.github.com/users/bitcrazed/gists{/gist_id}","starred_url":"https://api.github.com/users/bitcrazed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitcrazed/subscriptions","organizations_url":"https://api.github.com/users/bitcrazed/orgs","repos_url":"https://api.github.com/users/bitcrazed/repos","events_url":"https://api.github.com/users/bitcrazed/events{/privacy}","received_events_url":"https://api.github.com/users/bitcrazed/received_events","type":"User","site_admin":false},"labels":[{"id":838733506,"url":"https://api.github.com/repos/Microsoft/console/labels/console","name":"console","color":"111111","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2018-02-16T01:04:37Z","updated_at":"2018-05-09T15:25:26Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"_From @Elderry on July 17, 2017 8:2_\n\nMy Windows build number:  Microsoft Windows [Version 10.0.15063]\r\n\r\nIt seems that in many terminal emulators, after running a command that outputs colors to the terminal using bash, the background will become a strange gray or black. But the default Windows Console doesn't has this problem. Here are the examples:\r\n\r\nIntegrated Terminal of Visual Studio Code:\r\n<img width=\"614\" alt=\"1\" src=\"https://user-images.githubusercontent.com/1892221/28259432-d27e19b6-6b08-11e7-896a-871dd8f8327b.PNG\">\r\n\r\nIntegrated Terminal of Intellij IDEA:\r\n<img width=\"653\" alt=\"2\" src=\"https://user-images.githubusercontent.com/1892221/28259448-e142b574-6b08-11e7-8b2e-9e8516e5b6fa.PNG\">\r\n\r\nDefault Windows Console:\r\n<img width=\"732\" alt=\"3\" src=\"https://user-images.githubusercontent.com/1892221/28259457-ef355344-6b08-11e7-9d6e-842abc040733.PNG\">\r\n \r\nTo provide more detail, here is my bash prompt:\r\n```\r\nBLUE='\\e[1;34m'\r\nGREEN='\\e[1;32m'\r\nRESET='\\e[0m'\r\nsource $HOME/Projects/Personal/posh-git-sh/git-prompt.sh\r\nPROMPT_COMMAND='__posh_git_ps1 \"\" \"${BLUE}\\w\\n${GREEN}\\u@\\h${RESET} > \"'\r\n```\r\n\n\n_Copied from original issue: Microsoft/WSL#2344_"},"comment":{"url":"https://api.github.com/repos/Microsoft/console/issues/comments/387777464","html_url":"https://github.com/Microsoft/console/issues/88#issuecomment-387777464","issue_url":"https://api.github.com/repos/Microsoft/console/issues/88","id":387777464,"user":{"login":"miniksa","id":18221333,"avatar_url":"https://avatars0.githubusercontent.com/u/18221333?v=4","gravatar_id":"","url":"https://api.github.com/users/miniksa","html_url":"https://github.com/miniksa","followers_url":"https://api.github.com/users/miniksa/followers","following_url":"https://api.github.com/users/miniksa/following{/other_user}","gists_url":"https://api.github.com/users/miniksa/gists{/gist_id}","starred_url":"https://api.github.com/users/miniksa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miniksa/subscriptions","organizations_url":"https://api.github.com/users/miniksa/orgs","repos_url":"https://api.github.com/users/miniksa/repos","events_url":"https://api.github.com/users/miniksa/events{/privacy}","received_events_url":"https://api.github.com/users/miniksa/received_events","type":"User","site_admin":false},"created_at":"2018-05-09T15:25:26Z","updated_at":"2018-05-09T15:25:26Z","author_association":"MEMBER","body":"Correct, our API `ReadConsoleOutput` and friends doesn't provide the ability to read this information out of the screen buffer. VSCode uses WinPTY which scrapes this information out of our buffer with the console APIs.\r\n\r\nWe've been focusing on #57 instead to allow 3rd-party terminals to receive this information on a standard PTY stream like other platforms instead."}}
{"actor":{"display_login":"miniksa"}}