English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux dumpkeys command

Linux Command大全

The Linux dumpkeys command is used to display the keyboard mapping table, and the output content can be recognized by the loadkeys command to change the mapping relationship.

Syntax

dumpkey[select parameters]

Parameter description:

  • -i Driver information (keycode range, quantity, status keys)
  • -l Detailed driver information
  • -n Hexadecimal display
  • -f Display all information
  • -1 line by line display key combinations
  • -S Set output format (0: preset 1:Complete 2:Line break 3simple)
  • --funcs-only functional key information
  • --keys-only key combination information
  • --compose-only normal key information

Online Examples

Display functional key information

# dumpkeys --funcs-only 
string F1 = "\033[[A"
string F2 = "\033[[B"
string F3 = "\033[[C"
string F4 = "\033[[D"
string F5 = "\033[[E"
string F6 = "\033[17~"
string F7 = "\033[18~"
string F8 = "\033[19~"
string F9 = "\033[20~"
string F10 = "\033[21~"
string F11 = "\033[23~"
string F12 = "\033[24~"
string F13 = "\033[25~"
string F14 = "\033[26~"
string F15 = "\033[28~"
string F16 = "\033[29~"
string F17 = "\033[31~"
string F18 = "\033[32~"
string F19 = "\033[33~"
string F20 = "\033[34~"
string Find = "\033[1~"
string Insert = "\033[2~"
string Remove = "\033[3~"
string Select = "\033[4~"
string Prior = "\033[5~"
string Next = "\033[6~"
string Macro = "\033[M"
string Pause = "\033[P"
root@snail-hnlinux:~# 

Display driver information

# dumpkeys -i
The range of key value codes supported by the kernel: 1 - 255
The maximum value that can be bound to the key value: 256
The number of actual key values used: 128
Among them 121 Already dynamically allocated
The range of action code values supported by the kernel:
0x0000 - 0x00ff
0x0100 - 0x01ff
0x0200 - 0x0213
0x0300 - 0x0313
0x0400 - 0x0405
0x0500 - 0x05ff
0x0600 - 0x0603
0x0700 - 0x0708
0x0800 - 0x08ff
0x0900 - 0x0919
0x0a00 - 0x0a08
0x0b00 - 0x0bff
0x0c00 - 0x0c08
0x0d00 - 0x0dff
0x0e00 - 0x0e0a
The number of functional keys supported by the kernel:256
The maximum nr: The definition can be written: 256
nr: The definition used in actual writing: 68

Linux Command大全