Am Donnerstag, 5. Dezember 2013, 23:50:04 schrieb Zenaan Harkness:
> I'm running on sid.
> 
> With the following in ~/.inputrc :
> 
> $include /etc/inputrc
> "\e[1;5C": forward-word
> "\e[1;5D": backward-word
> "\e[5C": forward-word
> "\e[5D": backward-word
> "\e\e[C": forward-word
> "\e\e[D": backward-word
> 
> And running bind ~/.inputrc, CTRL+LeftArrow and
> CTRL+RightArrow display the usual problematic ";5D"
> and ";5C" character sequences.

I'm not sure what you have done, from your description. But I've done it the 
following way (a long time ago):

1. I've included the following in /etc/inputrc:

"\e[5C": forward-word
"\e[5D": backward-word
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[c-bs~": backward-kill-word
"\e[c-end~": kill-line
"\e[c-home~": backward-kill-line
"\e[\c-del~": kill-word

2. I've included the following in ~/.Xresources:

XTerm*VT100.translations: #override \n\
        Ctrl <Key>Left:      string(0x1b) string("[5D") \n\
        Ctrl <Key>Right:     string(0x1b) string("[5C") \n\
        Ctrl <Key>BackSpace: string(0x1b) string("[c-bs~") \n\
        Ctrl <Key>Delete:    string(0x1b) string("[c-del~") \n\
        Ctrl <Key>Home:      string(0x1b) string("[c-home~") \n\
        Ctrl <Key>End:       string(0x1b) string("[c-end~") \n

This should do the trick.


Have fun,
Volker


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1651828.fPK2OFAvbJ@debian

Reply via email to