The documentation on that blog post is actually slightly incorrect, and
you've just run into why. keymaps(5) says:

  First of all, you can give a map specification line, of the form

    keymaps 0-2,4-5,8,12

  to indicate that the lines of the keymap will not specify all 256
columns, but only the indicated ones. (In the example: only the plain,
Shift, AltGr, Control, Control+Shift, Alt and Control+Alt maps, that is,
7 columns instead of 256.) When no such line is given, the keymaps 0-M
will be defined, where M+1 is the maximum number of entries found in any
definition line.

In this case, the maximum number of entries found in any definition line
is 1, and thus only the keymaps 0-0 (i.e. only the keymap 0, the plain
unmodified binding) will be defined.

The dumpkeys output is still accurate, because it includes a 'keymaps'
line at the top. However, by grepping for just that keycode you've made
it inaccurate. To remedy this, use the following loadkeys command
instead of the one you supplied:

  (echo keymaps 0-63; echo keycode 58 = Control) | loadkeys -

I've also posted a correction to the blog post you supplied.

** Changed in: console-tools (Ubuntu)
     Assignee: (unassigned) => Colin Watson (kamion)
       Status: New => Invalid

-- 
loadkeys mangles key redefinitions
https://bugs.launchpad.net/bugs/200081
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to