[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: UTF-8 keyboard mode
From: Frank da Cruz <fdc@watsun.cc.columbia.edu>
: So then if I put the keyboard in (say) keycode mode so I can see which keys
: are pressed, I can't also get the Unicode values? Shouldn't there be a way
: to get both? Otherwise an application that needs to see keycodes must also
: duplicate all of the Unicode conversions that are in the keyboard driver,
: and then of course the application becomes needlessly bulky and also is in
: danger of getting out of sync with the keyboard driver.
A well-known desire. It is possible but impractical for applications
to ask the kernel for the current keymap and do the mapping themselves.
Long ago I wrote a /dev/kbd but never did much with it,
I forget what it did. But some device like this could produce
a stream of packets, somewhat like /dev/mouse, having scancodes
and keycodes and ASCII/UTF8 value.
Would you be happy with such a construction?
Andries
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/lists/