{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/pure/issues/188","labels_url":"https://api.github.com/repos/sindresorhus/pure/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/pure/issues/188/comments","events_url":"https://api.github.com/repos/sindresorhus/pure/issues/188/events","html_url":"https://github.com/sindresorhus/pure/issues/188","id":127825140,"number":188,"title":"extraneous characters when used in ansi-term in emacs","user":{"login":"randre03","id":621545,"avatar_url":"https://avatars.githubusercontent.com/u/621545?v=3","gravatar_id":"","url":"https://api.github.com/users/randre03","html_url":"https://github.com/randre03","followers_url":"https://api.github.com/users/randre03/followers","following_url":"https://api.github.com/users/randre03/following{/other_user}","gists_url":"https://api.github.com/users/randre03/gists{/gist_id}","starred_url":"https://api.github.com/users/randre03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randre03/subscriptions","organizations_url":"https://api.github.com/users/randre03/orgs","repos_url":"https://api.github.com/users/randre03/repos","events_url":"https://api.github.com/users/randre03/events{/privacy}","received_events_url":"https://api.github.com/users/randre03/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-21T01:32:58Z","updated_at":"2016-01-21T20:37:19Z","closed_at":"2016-01-21T19:29:25Z","body":"I'm using Pure inside slimzsh https://github.com/changs/slimzsh as my terminal, but also with ansi-term in emacs. In ansi-term it results in extra characters being returned between prompts. This blog post - http://blog.refu.co/?p=1277 - describes exactly the issue as well as a solution for another zsh framework. I reached out to slimzsh's creator @changs for a fix, but after some assistance he indicated this issue would need to be resolved in the code for Pure.\r\n\r\nI tried something along the lines of the suggested workaround in the provided blog post wherein I enclosed the \"prompt_pure_set_title\" function inside a conditional to check if it's running in emacs terminal, but that did not work. Any thoughts? Thanks"},"comment":{"url":"https://api.github.com/repos/sindresorhus/pure/issues/comments/173700772","html_url":"https://github.com/sindresorhus/pure/issues/188#issuecomment-173700772","issue_url":"https://api.github.com/repos/sindresorhus/pure/issues/188","id":173700772,"user":{"login":"mafredri","id":147409,"avatar_url":"https://avatars.githubusercontent.com/u/147409?v=3","gravatar_id":"","url":"https://api.github.com/users/mafredri","html_url":"https://github.com/mafredri","followers_url":"https://api.github.com/users/mafredri/followers","following_url":"https://api.github.com/users/mafredri/following{/other_user}","gists_url":"https://api.github.com/users/mafredri/gists{/gist_id}","starred_url":"https://api.github.com/users/mafredri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mafredri/subscriptions","organizations_url":"https://api.github.com/users/mafredri/orgs","repos_url":"https://api.github.com/users/mafredri/repos","events_url":"https://api.github.com/users/mafredri/events{/privacy}","received_events_url":"https://api.github.com/users/mafredri/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T20:37:19Z","updated_at":"2016-01-21T20:37:19Z","body":"Gald it works for you! Keep in mind this disables the set title altogether, if you still want to keep it in other terminals then put it inside a conditional statement that can properly determine the terminal being used :+1: ."}}