mirror of
https://github.com/ipxe/ipxe
synced 2026-01-22 12:08:58 +03:00
[console] Add keymap generator
Inspired by LILO's keytab-lilo.pl, genkeymap.pl uses "loadkeys -b" to obtain a Linux keyboard map, and generates a file keymap_xx.c in hci/keymap. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
21
src/hci/keymap/keymap_mt.c
Normal file
21
src/hci/keymap/keymap_mt.c
Normal file
@@ -0,0 +1,21 @@
|
||||
/** @file
|
||||
*
|
||||
* "mt" keyboard mapping
|
||||
*
|
||||
* This file is automatically generated; do not edit
|
||||
*
|
||||
*/
|
||||
|
||||
FILE_LICENCE ( PUBLIC_DOMAIN );
|
||||
|
||||
#include <ipxe/keymap.h>
|
||||
|
||||
/** "mt" keyboard mapping */
|
||||
struct key_mapping mt_mapping[] __keymap = {
|
||||
{ 0x22, 0x40 }, /* '"' => '@' */
|
||||
{ 0x23, 0x04 }, /* '#' => Ctrl-D */
|
||||
{ 0x40, 0x22 }, /* '@' => '"' */
|
||||
{ 0x5c, 0x23 }, /* '\\' => '#' */
|
||||
{ 0x7c, 0x7e }, /* '|' => '~' */
|
||||
{ 0x7f, 0x08 }, /* 0x7f => Ctrl-H */
|
||||
};
|
||||
Reference in New Issue
Block a user