{"action":"created","issue":{"url":"https://api.github.com/repos/zeit/hyper/issues/1822","repository_url":"https://api.github.com/repos/zeit/hyper","labels_url":"https://api.github.com/repos/zeit/hyper/issues/1822/labels{/name}","comments_url":"https://api.github.com/repos/zeit/hyper/issues/1822/comments","events_url":"https://api.github.com/repos/zeit/hyper/issues/1822/events","html_url":"https://github.com/zeit/hyper/issues/1822","id":228503435,"number":1822,"title":"Strange behavior when scrolling through past commands","user":{"login":"rmreq","id":28678557,"avatar_url":"https://avatars1.githubusercontent.com/u/28678557?v=4","gravatar_id":"","url":"https://api.github.com/users/rmreq","html_url":"https://github.com/rmreq","followers_url":"https://api.github.com/users/rmreq/followers","following_url":"https://api.github.com/users/rmreq/following{/other_user}","gists_url":"https://api.github.com/users/rmreq/gists{/gist_id}","starred_url":"https://api.github.com/users/rmreq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmreq/subscriptions","organizations_url":"https://api.github.com/users/rmreq/orgs","repos_url":"https://api.github.com/users/rmreq/repos","events_url":"https://api.github.com/users/rmreq/events{/privacy}","received_events_url":"https://api.github.com/users/rmreq/received_events","type":"User","site_admin":false},"labels":[{"id":456236636,"url":"https://api.github.com/repos/zeit/hyper/labels/%F0%9F%96%BC%20Platform:%20Windows","name":"🖼 Platform: Windows","color":"0078D6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-05-13T22:06:42Z","updated_at":"2018-04-21T04:10:21Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n  Hi there! Thank you for discovering and submitting an issue. \r\n\r\n  Before you submit this; let's make sure of a few things. \r\n  Please make sure the following boxes are ticked if they are correct.\r\n  If not, please try and fulfil these first.\r\n-->\r\n\r\n<!-- Checked checkbox should look like this: [x] -->\r\n- [x] I am on the [latest](https://github.com/zeit/hyper/releases/latest) Hyper.app version\r\n- [x] I have searched the [issues](https://github.com/zeit/hyper/issues) of this repo and believe that this is not a duplicate\r\n\r\n<!-- \r\n  Once those are done, if you're able to fill in the following list with your information,\r\n  it'd be very helpful to whoever handles the issue.\r\n-->\r\n\r\n- **OS version and name**: WSL (Ubuntu 16.04) on Windows 10 (Creators)\r\n- **Hyper.app version**: <!-- Replace with version -->\r\n- **Link of a [Gist](https://gist.github.com/) with the contents of your .hyper.js**: <!-- Gist Link Here -->\r\n- **Relevant information from devtools** _(CMD+ALT+I on Mac OS, CTRL+SHIFT+I elsewhere)_: <!-- Replace with info if applicable, or N/A -->\r\n- **The issue is reproducible in vanilla Hyper.app**: Is Vanilla\r\n## Issue\r\n<!-- Now feel free to write your issue, but please be descriptive! Thanks again 🙌 ❤️ -->\r\n\r\nSometimes when using the up-key to retrieve previous commands, the cursor moves up a line with each press, overwriting that line with the one retrieved from history.\r\nFor example:\r\n1$ cd dir1\r\n2$ ls -a\r\n3$ mv file1 ../\r\n4$ [enter]\r\n5$ [up-key]\r\nWhen pressing up on line 5, the cursor moves to line 4 and displays \"mv ...\" on 4; up again, and the mv file1 on line 3 is replaced by \"ls -a\"\r\n(Enter on line 4 is just to show that the retrieved command doesn't necessarily appear on the line where it was originally invoked)\r\nIf then I try to edit ls -a on line 3, each delete key press moves the cursor up, and back one character, resulting in something like this:\r\n![hyper_delete](https://cloud.githubusercontent.com/assets/28678557/26029555/31af99b2-37fd-11e7-9a37-609f69d81368.PNG)\r\nI've also experienced some problems with line wrap, where new characters are printed at the start of the current line after reaching the window edge rather than carrying over to a new line below. This occurs more frequently but not exclusively, at the bottom of the buffer (so it fails to automatically scroll down). But I'll create a separate issue for that since I suspect they are unrelated (this is new, while the line wrap issue has been occurring for weeks).\r\n"},"comment":{"url":"https://api.github.com/repos/zeit/hyper/issues/comments/383266224","html_url":"https://github.com/zeit/hyper/issues/1822#issuecomment-383266224","issue_url":"https://api.github.com/repos/zeit/hyper/issues/1822","id":383266224,"user":{"login":"Daynil","id":4650666,"avatar_url":"https://avatars2.githubusercontent.com/u/4650666?v=4","gravatar_id":"","url":"https://api.github.com/users/Daynil","html_url":"https://github.com/Daynil","followers_url":"https://api.github.com/users/Daynil/followers","following_url":"https://api.github.com/users/Daynil/following{/other_user}","gists_url":"https://api.github.com/users/Daynil/gists{/gist_id}","starred_url":"https://api.github.com/users/Daynil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daynil/subscriptions","organizations_url":"https://api.github.com/users/Daynil/orgs","repos_url":"https://api.github.com/users/Daynil/repos","events_url":"https://api.github.com/users/Daynil/events{/privacy}","received_events_url":"https://api.github.com/users/Daynil/received_events","type":"User","site_admin":false},"created_at":"2018-04-21T04:10:21Z","updated_at":"2018-04-21T04:10:21Z","author_association":"NONE","body":"Using windows, reporting the same issue.\r\nRunning WSL on windows 10, hyper 2.0.0.\r\nI have uninstalled all plugins and reset all settings to default, and the issue goes away. After adding in even a single color code to PM1 prompt, the issue manifests again, I've managed 100% replication with any color additions. \r\n\r\nThe issue manifests as:\r\n-Parts of the history gets stuck as you scroll up and down in command history. When stuck, your cursor now starts to the right of the stuck letters.\r\n-When reaching the end of the window, instead of wrapping to the next line, text wraps into the start of the prompt.\r\n-With some PM1 settings, the text starts to wrap to the start of the prompt (not next line) before it even reaches the end of the window.\r\n\r\nNo colors (default), no issues, even scrolling back and forth through hundreds of lines: \r\n![image](https://user-images.githubusercontent.com/4650666/39080189-5b3e2424-44ef-11e8-81d1-ca168f90c2aa.png)\r\n\r\nSingle color added ( PS1=\"\\e[36m[\\W]\\$\\e[0m \" )\r\n![image](https://user-images.githubusercontent.com/4650666/39080205-ac53a9f6-44ef-11e8-8174-8a03a8ce98fe.png)\r\nHere, ssh -i ~/ is stuck in front of the cursor, and scrolling to history item . ~/.bash_profile causes it to appear in front of ssh -i ~/. Note the command still works as expected, it is just some sort of display issue.\r\n\r\nLet me know if any further details may be of help.\r\n"}}
{"actor":{"display_login":"Daynil"}}