{"action":"created","issue":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/1388","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/1388/labels{/name}","comments_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/1388/comments","events_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/1388/events","html_url":"https://github.com/fish-shell/fish-shell/issues/1388","id":30587117,"number":1388,"title":"fish fails to  determine konsole escape sequence length","user":{"login":"maxfl","id":1798172,"avatar_url":"https://avatars.githubusercontent.com/u/1798172?v=3","gravatar_id":"","url":"https://api.github.com/users/maxfl","html_url":"https://github.com/maxfl","followers_url":"https://api.github.com/users/maxfl/followers","following_url":"https://api.github.com/users/maxfl/following{/other_user}","gists_url":"https://api.github.com/users/maxfl/gists{/gist_id}","starred_url":"https://api.github.com/users/maxfl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxfl/subscriptions","organizations_url":"https://api.github.com/users/maxfl/orgs","repos_url":"https://api.github.com/users/maxfl/repos","events_url":"https://api.github.com/users/maxfl/events{/privacy}","received_events_url":"https://api.github.com/users/maxfl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/fish-shell/fish-shell/milestones/4","html_url":"https://github.com/fish-shell/fish-shell/milestones/fish-future","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/milestones/4/labels","id":130257,"number":4,"title":"fish-future","description":"These are bugs that are not targeted for an upcoming release. After a release, we will reexamine these bugs and pull any in that we think are good targets.\r\n\r\nIf you can provide a fix for a bug in this milestone, we'll generally accept it for the next release even if the bug is not in the release.","creator":{"login":"ridiculousfish","id":920838,"avatar_url":"https://avatars.githubusercontent.com/u/920838?v=3","gravatar_id":"","url":"https://api.github.com/users/ridiculousfish","html_url":"https://github.com/ridiculousfish","followers_url":"https://api.github.com/users/ridiculousfish/followers","following_url":"https://api.github.com/users/ridiculousfish/following{/other_user}","gists_url":"https://api.github.com/users/ridiculousfish/gists{/gist_id}","starred_url":"https://api.github.com/users/ridiculousfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ridiculousfish/subscriptions","organizations_url":"https://api.github.com/users/ridiculousfish/orgs","repos_url":"https://api.github.com/users/ridiculousfish/repos","events_url":"https://api.github.com/users/ridiculousfish/events{/privacy}","received_events_url":"https://api.github.com/users/ridiculousfish/received_events","type":"User","site_admin":false},"open_issues":430,"closed_issues":97,"state":"open","created_at":"2012-06-11T02:25:13Z","updated_at":"2015-07-18T00:31:37Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2014-04-01T10:26:42Z","updated_at":"2015-07-19T07:39:40Z","closed_at":null,"body":"Tried on konsole and able to reproduce withtout vi_mode:\r\n```sh\r\nfunction fish_prompt\r\n      #mutliline prompt\r\n      echo a\r\n      echo b\\>\r\nend\r\nfunction ttt --on-variable fish_bind_mode\r\n      # block cursor\r\n      echo -en '\\e]50;CursorShape=0\\x7'\r\nend\r\n```\r\n\r\nthen start typing anything and type for a some time. On a some point the first prompt line becomes duplicated and everything moves one line down. Seems like fish misinterprets the length of the command printed. I guess this also causes the issue #1243."},"comment":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/comments/122635198","html_url":"https://github.com/fish-shell/fish-shell/issues/1388#issuecomment-122635198","issue_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/1388","id":122635198,"user":{"login":"pickfire","id":4687791,"avatar_url":"https://avatars.githubusercontent.com/u/4687791?v=3","gravatar_id":"","url":"https://api.github.com/users/pickfire","html_url":"https://github.com/pickfire","followers_url":"https://api.github.com/users/pickfire/followers","following_url":"https://api.github.com/users/pickfire/following{/other_user}","gists_url":"https://api.github.com/users/pickfire/gists{/gist_id}","starred_url":"https://api.github.com/users/pickfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pickfire/subscriptions","organizations_url":"https://api.github.com/users/pickfire/orgs","repos_url":"https://api.github.com/users/pickfire/repos","events_url":"https://api.github.com/users/pickfire/events{/privacy}","received_events_url":"https://api.github.com/users/pickfire/received_events","type":"User","site_admin":false},"created_at":"2015-07-19T07:39:40Z","updated_at":"2015-07-19T07:39:40Z","body":"I think I had experience similar issue. Do you mean this:\r\n\r\n1. Have a command that **occupies 2 lines** in your terminal.\r\n2. Add a ` -` and press `<TAB>` **trice** to complete the command.\r\n3. Type `a` to *search* for the completion with `a`.\r\n4. Then press **Ctrl+C**.\r\n\r\n**Output**: No *prompt* is shown.\r\n\r\n![2015-07-19-153918_564x340_scrot](https://cloud.githubusercontent.com/assets/4687791/8765032/58bd7d9e-2e2c-11e5-8bd8-e124e9e900af.png)\r\n"}}