{"action":"created","issue":{"url":"https://api.github.com/repos/tmux/tmux/issues/227","labels_url":"https://api.github.com/repos/tmux/tmux/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/tmux/tmux/issues/227/comments","events_url":"https://api.github.com/repos/tmux/tmux/issues/227/events","html_url":"https://github.com/tmux/tmux/issues/227","id":119856143,"number":227,"title":"Issues with bell while detached","user":{"login":"tobbez","id":9334,"avatar_url":"https://avatars.githubusercontent.com/u/9334?v=3","gravatar_id":"","url":"https://api.github.com/users/tobbez","html_url":"https://github.com/tobbez","followers_url":"https://api.github.com/users/tobbez/followers","following_url":"https://api.github.com/users/tobbez/following{/other_user}","gists_url":"https://api.github.com/users/tobbez/gists{/gist_id}","starred_url":"https://api.github.com/users/tobbez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobbez/subscriptions","organizations_url":"https://api.github.com/users/tobbez/orgs","repos_url":"https://api.github.com/users/tobbez/repos","events_url":"https://api.github.com/users/tobbez/events{/privacy}","received_events_url":"https://api.github.com/users/tobbez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-12-02T03:00:09Z","updated_at":"2015-12-03T14:54:24Z","closed_at":null,"body":"I found this after upgrading from 1.9 to 2.1. I have not checked if it happens in 2.0.\r\n\r\nIf you get a bell in the current window when the session is attached, then re-attach, switch to a different window and trigger a bell, then tmux will show a bell indicator for the previous window.\r\n\r\nTo reproduce:\r\nStart a new tmux session: `tmux`\r\nRun the following command `sleep 3; echo -e \"\\a\"`\r\nDetach the session before the sleep command has completed (`C-b d`).\r\nRe-attach the session after the sleep command has completed: `tmux attach`.\r\nCreate a new window (`C-b c`).\r\nRun `echo -e \"\\a\"`\r\nYou now have a bell indicator for window 0.\r\n\r\n\r\nIn addition, you no longer get a bell when attaching if a bell was sent while detached (you used to). Whether the bell was in the current window or not is not a factor."},"comment":{"url":"https://api.github.com/repos/tmux/tmux/issues/comments/161662823","html_url":"https://github.com/tmux/tmux/issues/227#issuecomment-161662823","issue_url":"https://api.github.com/repos/tmux/tmux/issues/227","id":161662823,"user":{"login":"ThomasAdam","id":101281,"avatar_url":"https://avatars.githubusercontent.com/u/101281?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasAdam","html_url":"https://github.com/ThomasAdam","followers_url":"https://api.github.com/users/ThomasAdam/followers","following_url":"https://api.github.com/users/ThomasAdam/following{/other_user}","gists_url":"https://api.github.com/users/ThomasAdam/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasAdam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasAdam/subscriptions","organizations_url":"https://api.github.com/users/ThomasAdam/orgs","repos_url":"https://api.github.com/users/ThomasAdam/repos","events_url":"https://api.github.com/users/ThomasAdam/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasAdam/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T14:54:24Z","updated_at":"2015-12-03T14:54:24Z","body":"@nicm, I don't believe bells used to work like that.  I could be wrong though."}}