[BusyBox] kmap
Erik Andersen
andersen at codepoet.org
Thu Jul 11 04:38:03 UTC 2002
On Thu Jul 04, 2002 at 04:45:28PM -0400, Alejandro Mery Pellegrini wrote:
> I need to map a mini-keyboard for a POS software. So i'll need to use
> loadkmap.
> kmap format seems to be plain text, but loadkmap says "binary keyboard
> translation table". What does it means? gzipped? some kind of 'compiled'
> file?
Busybox includes the 'dumpkmap' applet, which will create such a
binary keyboard translation table from the currently loaded kmap.
The idea is to create a normal kmap file that is appropriate for
your POS mini-keyboard. Then run 'loadkeys' on your development
system so that your mini-keyboard's keyboard translation tables
are loaded into the linux kernel. Then run the 'dumpkmap'
applet. So the whole operation on your development system would
go something like:
/usr/bin/dumpkeys > normal_keymap
/bin/loadkeys funky_mini_keyboard_keymap
./busybox dumpkmap > funky_mini_keyboard_keymap.bin
/bin/loadkeys normal_keymap
At which point, you now have a funky_mini_keyboard_keymap.bin
file which can be used with your POS system.
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the busybox
mailing list