On Mon, 27 Oct 2014 10:31:48 -0700
Denis Heidtmann <[email protected]> wrote:

> showkey -a
> for the left key of interest:
> <   60 0074 0x3c
> for  the right key of interest:
> \   92 0134 0x5c

This is showing the ASCII values for the characters in decimal,
octal, and hexadecimal.  "<" is 60 (dec), \074 (oct), and 0x3c
(hex); "\" is 92 (dec), \134 (oct), and 0x5c (hex).  Note that
this information doesn't do you much good if you're going to
modify your console keymap.  You'll need to uses the -k or -s
options to showkey.


> There is also xev:
> 
> For the left key:
> KeyPress event, serial 36, synthetic NO, window 0x4c00001,
>     root 0x261, subw 0x0, time 2468220, (18,-5), root:(1517,42),
>     state 0x10, keycode 94 (keysym 0x3c, less), same_screen YES,
>     XLookupString gives 1 bytes: (3c) "<"
>     XmbLookupString gives 1 bytes: (3c) "<"
>     XFilterEvent returns: False
> 
> KeyRelease event, serial 36, synthetic NO, window 0x4c00001,
>     root 0x261, subw 0x0, time 2468668, (18,-5), root:(1517,42),
>     state 0x10, keycode 94 (keysym 0x3c, less), same_screen YES,
>     XLookupString gives 1 bytes: (3c) "<"
>     XFilterEvent returns: False
> 
> For the right key:
> KeyPress event, serial 36, synthetic NO, window 0x4c00001,
>     root 0x261, subw 0x0, time 2474140, (18,-5), root:(1517,42),
>     state 0x10, keycode 51 (keysym 0x5c, backslash), same_screen YES,
>     XLookupString gives 1 bytes: (5c) "\"
>     XmbLookupString gives 1 bytes: (5c) "\"
>     XFilterEvent returns: False
> 
> KeyRelease event, serial 36, synthetic NO, window 0x4c00001,
>     root 0x261, subw 0x0, time 2474396, (18,-5), root:(1517,42),
>     state 0x10, keycode 51 (keysym 0x5c, backslash), same_screen YES,
>     XLookupString gives 1 bytes: (5c) "\"
>     XFilterEvent returns: False
> 
> These results do not seem to say the same thing.  Confusion.

The xev results are not guaranteed to match the showkey results.
In this particular case, they do.  Note the numeric values for
XLookupString and XmbLookupString: 3c and 5c.  These are, again,
the ASCII values for the given characters, "<" and "\"
respectively.

That said, I have to ask if you're sure you want to change these.
Putting "<" and "\" next to the shift keys is not normal US
keyboard layout.  Normally "<" is above the comma, and "\" is
below the "|", next to the backspace key.  (The "\"/"|" key can be
elsewhere; perhaps above the return key.  It depends on what kind
of return key you have.  Mine is the large "L"-shaped variety.)

Do you have "<" and "\" elsewhere on your keyboard?  If not, you
do NOT want to change these values.

--Dale

-- 
"The Enrichment Center reminds you that the Weighted Companion Cube
will never threaten to stab you and, in fact, cannot speak.  In the
event that the Weighted Companion Cube does speak, the Enrichment
Center urges you to disregard its advice."

Attachment: signature.asc
Description: PGP signature

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to