{"action":"created","issue":{"url":"https://api.github.com/repos/Maximus5/ConEmu/issues/1444","repository_url":"https://api.github.com/repos/Maximus5/ConEmu","labels_url":"https://api.github.com/repos/Maximus5/ConEmu/issues/1444/labels{/name}","comments_url":"https://api.github.com/repos/Maximus5/ConEmu/issues/1444/comments","events_url":"https://api.github.com/repos/Maximus5/ConEmu/issues/1444/events","html_url":"https://github.com/Maximus5/ConEmu/issues/1444","id":296022734,"number":1444,"title":"Display corruption in irssi, others running inside tmux in WSL bash","user":{"login":"harakka","id":2456481,"avatar_url":"https://avatars2.githubusercontent.com/u/2456481?v=4","gravatar_id":"","url":"https://api.github.com/users/harakka","html_url":"https://github.com/harakka","followers_url":"https://api.github.com/users/harakka/followers","following_url":"https://api.github.com/users/harakka/following{/other_user}","gists_url":"https://api.github.com/users/harakka/gists{/gist_id}","starred_url":"https://api.github.com/users/harakka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harakka/subscriptions","organizations_url":"https://api.github.com/users/harakka/orgs","repos_url":"https://api.github.com/users/harakka/repos","events_url":"https://api.github.com/users/harakka/events{/privacy}","received_events_url":"https://api.github.com/users/harakka/received_events","type":"User","site_admin":false},"labels":[{"id":373936661,"url":"https://api.github.com/repos/Maximus5/ConEmu/labels/other-wsl","name":"other-wsl","color":"bfe5bf","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-02-09T21:48:18Z","updated_at":"2018-05-19T23:47:55Z","closed_at":null,"author_association":"NONE","body":"### Versions\r\n\r\nConEmu build: 180206 x64 and x32 both, fresh download, settings reset to default\r\nOS version: Windows 10 Pro x64 ver 1709 build 16299.125\r\nUsed shell version: WSL bash with wslbridge/connector as launched by the default ConEmu {Bash::bash} task\r\n\r\n### Problem description\r\nFirst of all I hope ConEmu is the right place to report this, but to my amateur observation it seemed like the most likely place to start at least. Apologies if that isn't the case.\r\n\r\nWhen running irssi inside tmux in WSL bash, the output becomes garbled during use. It's a bit difficult to describe exactly, but it's particularly notable when using pageup and pagedown to scroll up and down. Irssi scrolls by half a page at a time, and it looks like the other half either doesn't update or gets blanked depending on which way it's being scrolled. This is completely consistent and reproducible on my end. New lines also seem to get printed in the wrong place or some lines don't update correctly. The scrolling problem was the clearest and most consistent one to repro so it's included here as an animated gif:\r\n![conemu-tmux2 gif](https://user-images.githubusercontent.com/2456481/36051651-8e7b59ca-0df3-11e8-9a27-8d33b8d4f71b.gif)\r\n\r\n\r\nThere's visual weirdness in programs other than irssi too, but irssi seems to be most consistent to reproduce for me. In `less`, after scrolling the status line of `tmux` at the bottom becomes blank or disappears or is printed in the wrong place, and `less`' statusline prints either either correctly on the second to last line, or incorrectly on the blank line where `tmux`' status line was, or it doesn't show at all. Line lengths in manpages (paged by less) get messed up when scrolling at least on a console noticeably wider than the standard 80 characters.\r\n\r\nThe image below (not animated) is after scrolling down for a bit in less. Also notice how part of the tmux status line (grey background), which should be at the bottom, is at the end of some completely different line.\r\n![image](https://user-images.githubusercontent.com/2456481/36049697-6a1e4b02-0dec-11e8-8e82-69bf07f3536f.png)\r\nAlso, the issues with `less` seem to become more pronounced on a console noticeably wider than 80 characters.\r\n\r\nIssuing a tmux redraw with `Ctrl+b r` seems to always fix the screen for that moment, but then it starts getting corrupted again.\r\n\r\nI believe this is not a WSL/Windows console issue, or at least not completely, because the tmux+irssi/less combination seems to work fine when WSL bash is started either from normal Windows command prompt or PowerShell. The issues only happen when using WSL bash in ConEmu+tmux.\r\n\r\nBased on tmux FAQ there is a similar-looking problem with irssi in normal Linux usage when using incorrect `$TERM` inside/and outside tmux, but my `$TERM` is `xterm-256color` outside and `screen-256color` inside tmux, which I understand to be the correct configuration.\r\n\r\n\r\n### Steps to reproduce\r\n\r\n1. Create a new console in ConEmu with the default {Bash::bash} task\r\n2. `sudo apt-get install tmux irssi`\r\n3. `tmux`\r\n4. `irssi`\r\n5. `/set` prints out all irssi settings, just to give something to scroll around in. If you're quick, you can see there's something odd going on with printing and scrolling already.\r\n6. press pageup a few times and then pagedown, note how both corrupt the display in a different way\r\n\r\nTo try seeing corruption in `less`, although this doesn't seem to happen as consistently:\r\n1. `sudo apt-get install tmux`\r\n2. `less /usr/share/doc/bash/README`\r\n3. scroll to the bottom either with arrows or pagedown, you should see the last lines getting corrupted at least\r\n4. Try a manpage like `man bash` (less is the default pager) and scrolling around with arrow keys and pageup and pagedown. You can also try resizing the console to be larger than the default, with a wider console the line width seem to become inconsistent once the corruption starts when scrolling.\r\n\r\n### Actual results\r\n\r\nDisplay corruption and explained and shown above\r\n\r\n\r\n### Expected results\r\n\r\nNo display corruption.\r\n\r\n### Logs\r\nHere's a log of me doing the tmux irssi and less activities as explained in the repro steps, where the corruption is showing on my display. \r\n[ConEmu-2018-02-09-p4956.log](https://github.com/Maximus5/ConEmu/files/1712527/ConEmu-2018-02-09-p4956.log)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Maximus5/ConEmu/issues/comments/390440974","html_url":"https://github.com/Maximus5/ConEmu/issues/1444#issuecomment-390440974","issue_url":"https://api.github.com/repos/Maximus5/ConEmu/issues/1444","id":390440974,"user":{"login":"Maximus5","id":1222388,"avatar_url":"https://avatars0.githubusercontent.com/u/1222388?v=4","gravatar_id":"","url":"https://api.github.com/users/Maximus5","html_url":"https://github.com/Maximus5","followers_url":"https://api.github.com/users/Maximus5/followers","following_url":"https://api.github.com/users/Maximus5/following{/other_user}","gists_url":"https://api.github.com/users/Maximus5/gists{/gist_id}","starred_url":"https://api.github.com/users/Maximus5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maximus5/subscriptions","organizations_url":"https://api.github.com/users/Maximus5/orgs","repos_url":"https://api.github.com/users/Maximus5/repos","events_url":"https://api.github.com/users/Maximus5/events{/privacy}","received_events_url":"https://api.github.com/users/Maximus5/received_events","type":"User","site_admin":false},"created_at":"2018-05-19T23:47:55Z","updated_at":"2018-05-19T23:47:55Z","author_association":"OWNER","body":"You don't need to \"install\" wslbridge. It's included in ConEmu distro and all you need - proper default Task created for you by ConEmu.\r\n"}}
{"actor":{"display_login":"Maximus5"}}