Gentoo Archives: gentoo-user

From: Tim Garton <garton.tim@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Getting ctrl-left/ctrl-right to jump backward/forward by word in non-x console
Date: Sun, 17 Jun 2007 03:52:50
Message-Id: 8fcf3b560706162047i13709a79k841aff4df47c5a59@mail.gmail.com
1 I just noticed that on all my Gentoo boxes, you can't jump around by word
2 using ctrl-arrow_key in the non-x console. It works fine in
3 xterm/Eterm/etc. while running X, but doesn't directly on the console. I
4 haven't had a chance yet to try it on another distro. Does anyone know how
5 to get this to work? Here's the backward-word/forward-word lines from my
6 /etc/inputrc:
7
8 # gnome-terminal (escape + arrow key)
9 "\e[5C": forward-word
10 "\e[5D": backward-word
11 # konsole / xterm / rxvt (escape + arrow key)
12 "\e\e[C": forward-word
13 "\e\e[D": backward-word
14 # konsole (alt + arrow key)
15 "\e[1;3C": forward-word
16 "\e[1;3D": backward-word
17 # aterm / eterm (control + arrow key)
18 "\eOc": forward-word
19 "\eOd": backward-word
20 # xterm
21 "\e[1;5C": forward-word
22 "\e[1;5D": backward-word