{"id":69,"date":"2018-12-07T18:46:52","date_gmt":"2018-12-07T18:46:52","guid":{"rendered":"https:\/\/7dc.org\/?p=69"},"modified":"2019-02-10T00:44:23","modified_gmt":"2019-02-10T00:44:23","slug":"cursor-issues-in-ssh-sessions-to-linux-hosts-from-windows-subsystem-for-linux-wsl-on-on-windows-10","status":"publish","type":"post","link":"https:\/\/7dc.org\/index.php\/2018\/12\/07\/cursor-issues-in-ssh-sessions-to-linux-hosts-from-windows-subsystem-for-linux-wsl-on-on-windows-10\/","title":{"rendered":"Cursor issues in ssh sessions to Linux hosts from  Windows Subsystem for Linux (WSL) on on Windows 10"},"content":{"rendered":"\r\n<h3><strong>Issue: <\/strong><\/h3>\r\n<h4>Using <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/wsl\/install-win10\" target=\"_blank\" rel=\"noopener\"><strong>Windows<\/strong> Subsystem for <strong>Linux<\/strong> (WSL) on on <strong>Windows<\/strong> 10<\/a><br \/>to establish an ssh session to a Linux host the cursor is acting strangely. You may be in vi or nano editing some file and your backspace suddenly makes the cursor jump or space bar acts like it is in edit mode, seemingly writing over stuff. <\/h4>\r\n<h3><strong>Solution:<\/strong><\/h3>\r\n<h4>Edit <strong>~\/.bashrc<\/strong> on the host by adding these two lines:<\/h4>\r\n\r\n\r\n\r\n<p class=\"is-layout-flow wp-block-quote-is-layout-flow\"><code>stty sane<\/code><br \/><code>export TERM=linux<\/code><\/p>\r\n\r\n\r\n\r\n<h4>Log out, log back in. Issue should be resolved.<\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Issue: Using Windows Subsystem for Linux (WSL) on on Windows 10to establish an ssh session to a Linux host the cursor is acting strangely. You may be in vi or nano editing some file and your backspace suddenly makes the cursor jump or space bar acts like it is in edit mode, seemingly writing over &#8230; <a class=\"read-more\" href=\"https:\/\/7dc.org\/index.php\/2018\/12\/07\/cursor-issues-in-ssh-sessions-to-linux-hosts-from-windows-subsystem-for-linux-wsl-on-on-windows-10\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-bash"],"_links":{"self":[{"href":"https:\/\/7dc.org\/index.php\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/7dc.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/7dc.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/7dc.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/7dc.org\/index.php\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":4,"href":"https:\/\/7dc.org\/index.php\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":158,"href":"https:\/\/7dc.org\/index.php\/wp-json\/wp\/v2\/posts\/69\/revisions\/158"}],"wp:attachment":[{"href":"https:\/\/7dc.org\/index.php\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/7dc.org\/index.php\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/7dc.org\/index.php\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}