Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Arch This Forum is for the discussion of Arch Linux.


  Search this Thread
Old 11-10-2006, 09:40 AM   #1
LQ Newbie
Registered: Jul 2005
Location: Russia
Distribution: choosing...
Posts: 26

Rep: Reputation: 15
Strange keyboard behavior

Sorry if a question is too simple to ask it here, but I really have no idea what to do.
I have just installed a system, and on virtual terminal the "Delete" key inserts the '~' symbol, I thought te problem could be in the inputrc file, but when I copied it from another system, where everything worked, nothing changed. Where can I read what to do?
The distro isn't Arch actually, but I think CRUX and Arch are very similar, and there is no topic for CRUX.
Old 11-11-2006, 07:28 AM   #2
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (
Posts: 1,900

Rep: Reputation: 68
No, the question is not absolutely trivial. Also, if it is near-to-trivial, but search gives nothing, it should be fixed.

Run showkey. Press supposed Delete. Post keycode. See in /etc/sysconfig/console name of keymap, find it in /usr/share/kbd/keymaps/i386/qwerty/ , zcat it and post. Maybe it will be sufficient just to back up the file, gunzip it, put "Delete" as last word in line saying just "keycode <number> = ..." instead of what it was, and gzip back. Or "Remove".
Old 11-11-2006, 09:02 AM   #3
LQ Newbie
Registered: Jul 2005
Location: Russia
Distribution: choosing...
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks, I tried to do so.
I've edited the '' and loaded it manually. There are some changes - now Delete works as Backspace, but it is said in /etc/inputrc:
"\e[3~": delete-char
Hmmm... And looking through man pages for keymaps and readline I found, that by default "\C-d" works as Delete should. But it's not so comfortable to use this keys combination.
And during theese experiments I got a new question - how can I find what escape-combination ("\e[3~" for example) the key generates? Is something like "showkey" for it?
my after editing:
keymaps 0-2,4-6,8-9,12
include "qwerty-layout"
include "linux-with-alt-and-altgr"
include "compose.latin1"
include ""
strings as usual

keycode   1 = Escape
keycode   2 = one              exclam
keycode   3 = two              at               at               nul              nul
keycode   4 = three            numbersign
	control	keycode   4 = Escape
keycode   5 = four             dollar           dollar           Control_backslash
keycode   6 = five             percent
	control	keycode   6 = Control_bracketright
keycode   7 = six              asciicircum
	control	keycode   7 = Control_asciicircum
keycode   8 = seven            ampersand        braceleft        Control_underscore
keycode   9 = eight            asterisk         bracketleft      Delete
keycode  10 = nine             parenleft        bracketright
keycode  11 = zero             parenright       braceright
keycode  12 = minus            underscore       backslash        Control_underscore Control_underscore
keycode  13 = equal            plus
keycode  14 = Delete
keycode  15 = Tab
keycode  26 = bracketleft      braceleft
	control	keycode  26 = Escape
keycode  27 = bracketright     braceright       asciitilde       Control_bracketright
keycode  28 = Return
	alt	keycode  28 = Meta_Control_m
keycode  29 = Control
keycode  39 = semicolon        colon
keycode  40 = apostrophe       quotedbl
	control	keycode  40 = Control_g
keycode  41 = grave            asciitilde
	control	keycode  41 = nul
keycode  42 = Shift
keycode  43 = backslash        bar
	control	keycode  43 = Control_backslash
keycode  51 = comma            less
keycode  52 = period           greater
keycode  53 = slash            question
	control keycode  53 = Control_underscore
	control shift keycode 53 = Delete
keycode  54 = Shift
keycode  56 = Alt
keycode  57 = space
	control	keycode  57 = nul
keycode  58 = Caps_Lock
keycode  86 = less             greater          bar
keycode  97 = Control
keycode 110 = Insert
keycode 111 = Delete
Also I wanted to say that 'Insert', 'PgUp', 'PgDn' insert '~' too, and the string
keycode 110 = Insert
was useless somewhy...

I should apologize for theese questions, I've installed this distribution to study, and I want to find most answers on my own. I've searched a lot in the Internet, but it was nearly useless...
Old 11-11-2006, 12:07 PM   #4
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (
Posts: 1,900

Rep: Reputation: 68
Well.. As a quick reply - if you complain about lack of information, there must be 'man keymaps'. Note - reading man page sometimes means reading its transitive closure. Also, maybe post dumpkeys output. And table of showkeys results for every key.
Also read man readline.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Very strange OS behavior after reinstallation Aranel Mandriva 5 06-15-2006 08:34 AM
Very Strange Behavior raysr Mandriva 4 08-31-2004 02:06 PM
Strange behavior of tar frankieboy Linux - General 4 10-16-2003 01:53 PM
Strange Behavior andrewb758 Linux - Hardware 5 08-31-2003 02:42 PM
strange behavior abhijit Linux - General 3 07-09-2003 11:25 PM > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 06:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration