mkkbd

Generate a binary keyboard table from a textual keyboard definition

Syntax:

mkkbd [-f file] [-h dir] [-i dir] [-v[v]...] source_file

Runs on:

x86

Options:

-f file
The name of the output file. The default is the name of the source_file but with the extension .kbd instead of .kdef.
-h dir
Directory in which to find .h header files (e.g. sys/usbcodes.h, photon/PkKeyDef.h). The default is /usr/include/.
-i dir
Directory in which to find .inc mapping files (e.g. common.inc). The default is the source_file directory.
-v[v]...
Increment verbosity. The default is zero verbosity.
source_file
Make keyboard tables for the keyboard names that match the specified pattern. Source files have the extension .kdef.

Description:

The mkkbd utility compiles a text file containing keyboard definitions and is capable of creating a binary keyboard table file from each definition file. The resulting binary file is used in devi-hid.


Note: You need to use mkkbd only if you create or modify a keyboard definition source file.

The compiled output file is created in the current directory or according to the -f option. For a sample keyboard definition file, see /usr/photon/keyboard/sample.kdef.

Examples:

Create a German keyboard table (german.kbd) from the keyboard definition file called german.kdef:

mkkbd german.kdef

Files:

mkkbd
The mkkbd command is normally to be found in /usr/photon/bin.
sample.kdef
Sample textual keyboard definition file normally found in /usr/photon/keyboard/

Exit status:

0
Success.
0
An error occurred.

See also:

devi-hid, inputtrap

"International keyboards" in the Using the Command Line chapter of the Neutrino User's Guide