{"id":45,"date":"2012-09-08T11:22:00","date_gmt":"2012-09-08T11:22:00","guid":{"rendered":"https:\/\/www.root42.de\/blog\/?p=45"},"modified":"2012-09-08T11:22:00","modified_gmt":"2012-09-08T11:22:00","slug":"using-ctrlarrow-keys-in-the-os-x-terminal","status":"publish","type":"post","link":"https:\/\/www.root42.de\/blog\/?p=45","title":{"rendered":"Using Ctrl+Arrow keys in the OS X terminal"},"content":{"rendered":"<div style=\"clear: both; text-align: left;\">The key combination <span style=\"font-family: Courier New, Courier, monospace;\">Ctrl + left<\/span> or <span style=\"font-family: Courier New, Courier, monospace;\">right<\/span> arrow key can be used to go a word left or right in many programs such as GNU Emacs or the bash. In the default configuration of the OS X terminal, this is not the case. That&#8217;s because Terminal.app <a href=\"http:\/\/www.dansanderson.com\/blog\/2007\/10\/ctrlleft-and-ctrlright-for-mac.html\">sends the wrong key codes<\/a> for bash&#8217;s default configuration. So you just need to got to the preferences (<span style=\"font-family: Courier New, Courier, monospace;\">cmd+,<\/span>) and set the key codes for <span style=\"font-family: Courier New, Courier, monospace;\">Ctrl+left<\/span> and <span style=\"font-family: Courier New, Courier, monospace;\">right<\/span> to <span style=\"font-family: Courier New, Courier, monospace;\">\u000033b<\/span> and <span style=\"font-family: Courier New, Courier, monospace;\">\u000033f<\/span> respectively:<\/div>\n<p><a href=\"http:\/\/1.bp.blogspot.com\/-_4aJllGjyQY\/UEsqBlTJOtI\/AAAAAAAACuc\/0hXw4pDPG_I\/s1600\/Bildschirmfoto+2012-09-08+um+13.19.54.png\" style=\"margin-left: 1em; margin-right: 1em; text-align: center;\"><img border=\"0\" src=\"http:\/\/1.bp.blogspot.com\/-_4aJllGjyQY\/UEsqBlTJOtI\/AAAAAAAACuc\/0hXw4pDPG_I\/s1600\/Bildschirmfoto+2012-09-08+um+13.19.54.png\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The key combination Ctrl + left or right arrow key can be used to go a word left or right in many programs such as GNU Emacs or the bash. In the default configuration of the OS X terminal, this is not the case. That&#8217;s because Terminal.app sends the wrong key codes for bash&#8217;s default &hellip; <a href=\"https:\/\/www.root42.de\/blog\/?p=45\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Using Ctrl+Arrow keys in the OS X terminal&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[27,24],"tags":[],"_links":{"self":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/45"}],"collection":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=45"}],"version-history":[{"count":0,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/45\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}