On Sat, Nov 02, 2002 at 07:48:08AM -0600, David D. Hagood wrote: > Is there any way to get X to support the ALT+keypad ASCII code support > working under X? > > Under a normal Linux console, ALT+(three digit ASCII code) will yield a > key event for that key - in other words, ALT+(Keypad 0 6 5) will yield > an 'A'. > > I have a barcode scanner that generates all its events in this fashion > (makes sense in a way - that way Dvorak or QWERTY is a non-issue), but > that means that it won't work under X without some extra support.
I think the best way to handle this is client-side. Nothing in the X server prevents an arbitrary X client from seeing the following events: Alt_[LR] press KP_[0-9] press KP_[0-9] release [...] Alt_[LR] release To support this server-side would, I think, require a lot of code overhead. You could write a simple bar-code-reader X client that grabbed the keyboard. Also, since the ALT+keypad trick is a DOS thing, are you sure you mean ASCII, or really IBM code page 437? -- G. Branden Robinson | Men use thought only to justify Debian GNU/Linux | their wrong doings, and speech only [EMAIL PROTECTED] | to conceal their thoughts. http://people.debian.org/~branden/ | -- Voltaire
msg10526/pgp00000.pgp
Description: PGP signature
