{"action":"created","issue":{"url":"https://api.github.com/repos/zyedidia/micro/issues/390","repository_url":"https://api.github.com/repos/zyedidia/micro","labels_url":"https://api.github.com/repos/zyedidia/micro/issues/390/labels{/name}","comments_url":"https://api.github.com/repos/zyedidia/micro/issues/390/comments","events_url":"https://api.github.com/repos/zyedidia/micro/issues/390/events","html_url":"https://github.com/zyedidia/micro/issues/390","id":179896585,"number":390,"title":"quitting micro mutates terminal state","user":{"login":"dsnet","id":6354026,"avatar_url":"https://avatars.githubusercontent.com/u/6354026?v=3","gravatar_id":"","url":"https://api.github.com/users/dsnet","html_url":"https://github.com/dsnet","followers_url":"https://api.github.com/users/dsnet/followers","following_url":"https://api.github.com/users/dsnet/following{/other_user}","gists_url":"https://api.github.com/users/dsnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dsnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsnet/subscriptions","organizations_url":"https://api.github.com/users/dsnet/orgs","repos_url":"https://api.github.com/users/dsnet/repos","events_url":"https://api.github.com/users/dsnet/events{/privacy}","received_events_url":"https://api.github.com/users/dsnet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-28T21:35:08Z","updated_at":"2016-09-28T22:01:53Z","closed_at":null,"body":"```\r\nOS:       Linux Mint 17.1 Rebecca\r\nTerminal: terminator\r\nShell:    bash 4.3.11\r\n\r\nVersion: 13144d4b576deafc9812ee5b8dc0663e820cae75\r\n```\r\n\r\nWhen `micro` exits, it leaves a terminal mode enabled that is probably off by default for most users.\r\n\r\nThat is, somewhere in its operation, `micro` uses [bracketed paste mode](https://cirw.in/blog/bracketed-paste) and fails to disable it when it exits. Thus, after exiting micro, if you try to paste into your terminal the string `\"hello\"`, the terminal will try to paste the `\"\\e[200~hello\\e[201~\"` instead.\r\n\r\n\"bracketed paste mode\" isnt the only terminal state that `micro` alters, but it is the only I notice most frequently.\r\n\r\nQuitting `micro` (either normally or killed by SIGTERM) should cause `micro` to try and set the terminal settings as closely as possible to the state prior to invoking `micro`."},"comment":{"url":"https://api.github.com/repos/zyedidia/micro/issues/comments/250314180","html_url":"https://github.com/zyedidia/micro/issues/390#issuecomment-250314180","issue_url":"https://api.github.com/repos/zyedidia/micro/issues/390","id":250314180,"user":{"login":"dsnet","id":6354026,"avatar_url":"https://avatars.githubusercontent.com/u/6354026?v=3","gravatar_id":"","url":"https://api.github.com/users/dsnet","html_url":"https://github.com/dsnet","followers_url":"https://api.github.com/users/dsnet/followers","following_url":"https://api.github.com/users/dsnet/following{/other_user}","gists_url":"https://api.github.com/users/dsnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dsnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsnet/subscriptions","organizations_url":"https://api.github.com/users/dsnet/orgs","repos_url":"https://api.github.com/users/dsnet/repos","events_url":"https://api.github.com/users/dsnet/events{/privacy}","received_events_url":"https://api.github.com/users/dsnet/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T22:01:53Z","updated_at":"2016-09-28T22:01:53Z","body":"The bracketed-paste mode is still present on 13144d4b576deafc9812ee5b8dc0663e820cae75 (Sept 28, 2016). The fix in the commit you are referencing seems legit to me. Is it possible that some other step in the finalization process accidentally re-enables bracketed-paste mode?\r\n\r\nOther things: I noticed once that using the scrollwheel inserted escape sequences, but I haven't seen in some time (may be fixed?)."}}
{"actor":{"display_login":"dsnet"}}