{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/1446","repository_url":"https://api.github.com/repos/Microsoft/BashOnWindows","labels_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/1446/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/1446/comments","events_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/1446/events","html_url":"https://github.com/Microsoft/BashOnWindows/issues/1446","id":192938913,"number":1446,"title":"bash.exe in conhost should emit TERM=xterm-256color","user":{"login":"fpqc","id":6083371,"avatar_url":"https://avatars.githubusercontent.com/u/6083371?v=3","gravatar_id":"","url":"https://api.github.com/users/fpqc","html_url":"https://github.com/fpqc","followers_url":"https://api.github.com/users/fpqc/followers","following_url":"https://api.github.com/users/fpqc/following{/other_user}","gists_url":"https://api.github.com/users/fpqc/gists{/gist_id}","starred_url":"https://api.github.com/users/fpqc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpqc/subscriptions","organizations_url":"https://api.github.com/users/fpqc/orgs","repos_url":"https://api.github.com/users/fpqc/repos","events_url":"https://api.github.com/users/fpqc/events{/privacy}","received_events_url":"https://api.github.com/users/fpqc/received_events","type":"User","site_admin":false},"labels":[{"id":364053977,"url":"https://api.github.com/repos/Microsoft/BashOnWindows/labels/fixinbound","name":"fixinbound","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-01T19:26:59Z","updated_at":"2016-12-01T22:17:20Z","closed_at":null,"body":"I was wondering why conhost wasn't rendering my gray statusbar in tmux even though 256color is there.  The problem was that the default environment variable for `TERM` is xterm and not xterm-256color.\r\n\r\nI think this is a WSL/init problem since bash.exe passes the default TERM variable to the WSL environment.\r\n\r\nThere is a workaround available, which is to launch bash.exe with the correct environment variable (in my case to launch tmux with the correct outer environment variable) as follows: \r\n\r\n`bash.exe -c \"TERM=xterm-256color tmux\" `\r\n\r\nbut this is less than ideal.  The reason this matters is that programs will change what escape sequences they print to the terminal based on the environment's `TERM`, so it wastes all of the great work done by the console team."},"comment":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/comments/264312885","html_url":"https://github.com/Microsoft/BashOnWindows/issues/1446#issuecomment-264312885","issue_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/1446","id":264312885,"user":{"login":"fpqc","id":6083371,"avatar_url":"https://avatars.githubusercontent.com/u/6083371?v=3","gravatar_id":"","url":"https://api.github.com/users/fpqc","html_url":"https://github.com/fpqc","followers_url":"https://api.github.com/users/fpqc/followers","following_url":"https://api.github.com/users/fpqc/following{/other_user}","gists_url":"https://api.github.com/users/fpqc/gists{/gist_id}","starred_url":"https://api.github.com/users/fpqc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpqc/subscriptions","organizations_url":"https://api.github.com/users/fpqc/orgs","repos_url":"https://api.github.com/users/fpqc/repos","events_url":"https://api.github.com/users/fpqc/events{/privacy}","received_events_url":"https://api.github.com/users/fpqc/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T22:17:20Z","updated_at":"2016-12-01T22:17:20Z","body":"@benhillis Yeah, by the way, if you have tmux-git available, you can drop a line in .tmux.conf to override terminal capabilities and also enable 24-bit color (the problem is that the current terminfo databases haven't standardized the capability indicator).  "}}
{"actor":{"display_login":"fpqc"}}