Re: Alt-Arrow in terminal
Claudio Fontana <[email protected]>
| Newsgroups | gmane.linux.slackware |
|---|---|
| Message-ID | <CAJuRt+q0bhx37EAohqdbL9XZXbShmLjYeEDjp4uADXZz6zXKag@mail.gmail.com> |
Hello, On Tue, Jun 17, 2014 at 9:19 PM, Morten Juhl-Johansen Zölde-Fejér <[email protected]> wrote: > Dear Slack users, > > I am sorry to go back to this; I actually asked this question at one > point but could not seem to find it. > > What I want to ask about is navigating the terminal line with > Ctrl-<leftarrow> and -<rightarrow>. Which terminal are you using? Here is the fix for me which I am using for xterm. Explanation ========= I seldom use it (I do use Control-A and Control-E much more), but Ctrl-Left and Ctrl+Right works for me by default on rxvt, while it does not work on xterm. I use fluxbox only, no display manager. My workaround for this, is that I force xterm to generate the same sequence as rxvt in response to control-arrows. These sequences are successively picked up by bash'es readline code, by reading in /etc/inputrc: # Set various nice escape sequences: "\eOd": backward-word "\eOc": forward-word Solution (as in, works for me) ===================== append to the file /etc/X11/app-defaults/XTerm the following lines (note: leave an additional empty line at the end) XTerm*StringConversionWarnings: on XTerm.VT100.translations: #override \ Ctrl<Key>Left: string(0x1b) string("Od") \n\ Ctrl<Key>Right: string(0x1b) string("Oc") \n\ Ciao, Claudio > I have found a suggestion to put: > "\eOd": backward-word > "\eOc": forward-word > in .inputrc. Unfortunately, that did not actually DO anything. > > Can anyone suggest to me what I am missing? > I see there is an inputrc in /etc/inputrc which suggests the same, I am > just not actually GETTING anything... even when I copy it to > ~/.inputrc . > > Any thoughts? > > All the best, > Morten _______________________________________________ slackware mailing list [email protected] https://mailman.lug.org.uk/mailman/listinfo/slackware