![](https://seccdn.libravatar.org/avatar/64f8793c7ad0eef351592c4bdcc34aff.jpg?s=120&d=mm&r=g)
Subject: [S.u.S.E. Linux] Re: BackSpace in XTerm SuSE differences. Date: Fri, Feb 13, 1998 at 01:26:28PM +0100 In reply to:Dr. Werner Fink Quoting Dr. Werner Fink(werner@suse.de):
Werner
With the ~/.inputrc file removed the Xterm works correctly. Delete, BackSpace, Home and end work as they should. The problem is, as I stated below, on the console the Delete key does not work correctly. The Delete key deletes the character to the right of the cursor rather then the character the cursor is on. This is the reason I added "Del: delete-char" to the .inputrc file in my home directory.
Hmmm ... it seems to a bug in the console map. You can test this by using Ctrl-V and pressing BackSpace, this should give
^?
the same for Delete ... Ctrl-V and pressing Delete should give
^[[3~
(^? is \127 also known as DEL and ^[ is \033 also known as ESC).
ahh, but they do NOT on the console. On an user installed by SuSE with NO added files. On this new user, Ctrl-V backspace gives ^H Ctrl-V delete gives ^? VT3 wayne-SuSE:~$ grep delete /etc/inputrc "\e[3~": delete-char #do `backward-delete-char' # Note: `delete-char' is maped to \033[3~ "\C-?": backward-delete-char <<<<<<<<?????? "\C-H": backward-delete-char VT3 wayne-SuSE:~$ Am I reading the above wrong? "\C-?" = ^? = backward-delete-char NOT delete????? Dosen't that cancel out the "\e[3~": delete-char ???? I believe (?) that the us.map was loaded om installation so I checked the differences in the 2 us map files. VT6 wtopa-SuSE:/usr/lib/kbd/keytables$ diff us-prokey.map us.map 4c4 < keycode 0 = ---
keymaps 0-2,4-6,8,9,12 14a15 control alt keycode 3 = Meta_nul VT6 wtopa-SuSE:/usr/lib/kbd/keytables$
So it looks like there is nothing different inthe Delete and BackSpace in either file. [...]
Please have a look into your map file in /usr/lib/kbd/keytables/. Note that on linux console the keycode of BackSpace key should repeat the ASCII-DEL character and the keycode of the Delete key should repeat the ANSI-DELETE-CHAR sequence (also known as Remove). With this mapping the /etc/inputrc works:
home/werner> grep delete /etc/inputrc "\e[3~": delete-char # do `backward-delete-char' # Note: `delete-char' is maped to \033[3~ "\C-?": backward-delete-char "\C-H": backward-delete-char
(\C-? is identical with ^?)
Werner
VT6 wtopa-SuSE:/usr/lib/kbd/keytables$ grep Delete us.map
control keycode 9 = Delete
keycode 14 = Delete Delete
alt keycode 14 = Meta_Delete
control keycode 53 = Delete
VT6 wtopa-SuSE:/usr/lib/kbd/keytables$ grep BackSpace us.map
NO OUTPUT!!!!!
____________________________________________________________________
Comparing the us.map to my old Slackware custom.map (which worked but
with DEL: delete-char in the .inputrc) I see this difference>
NOTE: custom.map is NOT loaded for these tests!
--------------------------------------------------------------------
VT6 wtopa-SuSE:/usr/lib/kbd/keytables$ grep -i Backspace ~wtopa/1custom.map
keycode 14 = BackSpace BackSpace
control keycode 14 = BackSpace
VT6 wtopa-SuSE:/usr/lib/kbd/keytables$ grep -i Delete ~wtopa/1custom.map
control keycode 9 = Delete
#keycode 14 = Delete Delete
alt keycode 14 = Meta_Delete
control keycode 53 = Delete
shift control keycode 53 = Delete
keycode 111 = Delete Delete
alt keycode 111 = Meta_Delete
VT6 wtopa-SuSE:/usr/lib/kbd/keytables$
--
"You must realize that the computer has it in for you. The irrefutable
proof of this is that the computer always does what you tell it to do."
_______________________________________________________
Wayne T. Topa