[ILUG] X and keycodes

Liam Bedford lbedford at lbedford.org
Thu Nov 22 17:35:49 GMT 2001


before I beat my head into a pulp...

I'm having problems getting Euro's to work on the product I'm working on.

We're using XF3.3.6 (for the touchscreen), and I've got my own keymap
which defines shift-2 as EuroSign.

I have exactly the same stuff running on my desktop machine (RH 7.2,
same version of X, same config files etc), and my desktop can do it.
Both machines are pointing at a third machine for fonts.

Pressing shift-2 on the kiosk nothing happens. On the desktop, up
pops either the Universal currency symbol, or a euro, depending on the
font.

The only thing I've found so far is from using xev:
when I do shift-2 into xev on my desktop I get
KeyRelease event, serial 27, synthetic NO, window 0x2200001,
	root 0x4e, subw 0x0, time 1427821638, (25,96), root:(1317,116),
	state 0x1, keycode 11 (keysym 0x20ac, EuroSign), same_screen YES,
	XLookupString gives 1 characters:  "Û"

(that should be a Euro between the "s, but I think X + OS X don't get on)

anyway, on the Kiosk I get:
KeyRelease event, serial 28, synthetic NO, window 0x1000001,
	root 0x2d, subw 0x0, time 1427794124, (23,284), root:(37,314),
	state 0x1, keycode 11 (keysym 0x20ac, EuroSign), same_screen YES,
	XLookupString gives 0 characters:  ""

Where does XLookupString get the characters from, and any ideas why it
doesn't see it on the second machine?

L.
-- 
     dBP   dBBBBb | If you're looking at me to be an accountant
              dBP | Then you will look but you will never see
   dBP    dBBBK'  | If you're looking at me to start having babies
  dBP    dB' db   | Then you can wish because I'm not here to fool around
 dBBBBP dBBBBP'   | Belle & Sebastian (Family Tree)




More information about the ILUG mailing list