mirror of
https://github.com/ipxe/ipxe
synced 2026-02-05 08:53:52 +03:00
[console] Support changing keyboard map at runtime
Provide the special keyboard map named "dynamic" which allows the
active keyboard map to be selected at runtime via the ${keymap}
setting, e.g.:
#define KEYBOARD_MAP dynamic
iPXE> set keymap uk
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -395,6 +395,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
#define ERRFILE_efi_cachedhcp ( ERRFILE_OTHER | 0x00550000 )
|
||||
#define ERRFILE_linux_sysfs ( ERRFILE_OTHER | 0x00560000 )
|
||||
#define ERRFILE_linux_acpi ( ERRFILE_OTHER | 0x00570000 )
|
||||
#define ERRFILE_dynkeymap ( ERRFILE_OTHER | 0x00580000 )
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
@@ -73,5 +73,7 @@ struct keymap {
|
||||
#define KEYMAP_ALTGR 0x0800
|
||||
|
||||
extern unsigned int key_remap ( unsigned int character );
|
||||
extern struct keymap * keymap_find ( const char *name );
|
||||
extern void keymap_set ( struct keymap *keymap );
|
||||
|
||||
#endif /* _IPXE_KEYMAP_H */
|
||||
|
||||
Reference in New Issue
Block a user