Red Hat Bugzilla – Bug 29669
use of <ins> or <del> on command line
Last modified: 2007-04-18 12:31:47 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.1-0.1.10 i686)
This may be stupid, but I'd like to see the insert and delete keys have the
same kind of functionality on a shell command line as they do with DOS - ie
<del> removes character immediately to right of cursor while <ins> toggles
Currently, all I get with either of these keys is a "~".
In the unlikely event that this is actually supposed to work today, it may
help to add that I'm using a UK keyboard (MS Natural Pro)
Steps to Reproduce:
del does just what you want it to (ins doesn't, and isn't supposed to).
Is del not working for you in X or in text mode? If x, are you using konsole,
kvt, gnome-terminal, xterm or rxvt?
You're right, del works in text mode (Ctrl-Alt-F1 to get to the console in
It doesn't work in X using gnome-terminal, konsole, xterm or rxvt. I don't have
Could this be an XKB issue? I've tried pc101, pc105 and msnatural
On a related note, I connected to a wolverine server using an HP Entria X-
terminal, logged into a gnome desktop and started a gnome-terminal. Then tried
an ls|more (using shifted key 28 for the pipe). It was echoed and interpreted
as a broken bar (hex a6) which is not understood by the shell as a pipe.
I worked around this by setting "keycode 28 = backslash bar"
in /etc/X11/Xmodmap which seems to have had the desired effect. However, the
comments at the top of the Xmodmap file seem to suggest that XKB ought to be
sorting this out?
Logging into the X server on the wolverine machine itself was OK
It's either an XKB issue or an inputrc issue.
If you type "cat", press return, then press del, what escape sequence do you
see? ^[[3~ ?
Yes, this is the escape sequence I see...
BTW, my "workaround" for the xterminal problem doesn't work. For some reason I
don't understand the "console" keyboard's key #28 is the "T" key (which, of
course is now remapped to \|, whilst the xterminal's is the "\|" key (right
next to the LH shift). Both these keyboards look identical in layout, and I
just can't figure out what's going on.
Just updated system to latest up2date versions of everything, and this problem
seems to have gone away (del now works in X from the system "console")