「kbd」

认识

官网:https://kbd-project.org/
文档:https://kbd-project.org/#documentation
仓库:https://github.com/legionus/kbd

The kbd project contains utilities for managing Linux console (Linux console, virtual terminals, keyboard, etc.) – mainly, what they do is loading console fonts and keyboard maps. The utilities use kernel interfaces to load the keymap. 简而言之,KBD,是个软件包,其包含用于管理 Linux 控制台、更换字体、调整文本模式虚拟控制台、键盘映射。

组成

命令程序 and 配置文件

chvt:Changes the foreground virtual terminal

deallocvt:Deallocates unused virtual terminals

dumpkeys:Dumps the keyboard translation tables

fgconsole:Prints the number of the active virtual terminal

getkeycodes:Prints the kernel scancode-to-keycode mapping table

kbdinfo:Obtains information about the status of a console

kbd_mode:Reports or sets the keyboard mode

kbdrate:Sets the keyboard repeat and delay rates

loadkeys:加载键盘转换表(keyboard translation tables)

loadunimap:Loads the kernel unicode-to-font mapping table

mapscrn:An obsolete program that used to load a user-defined output character mapping table into the console driver; this is now done by setfont

openvt:Starts a program on a new virtual terminal (VT)

psfaddtable:Adds a Unicode character table to a console font

psfgettable:Extracts the embedded Unicode character table from a console font

psfstriptable:Removes the embedded Unicode character table from a console font

psfxtable:Handles Unicode character tables for console fonts

setkeycodes:Loads kernel scancode-to-keycode mapping table entries; this is useful if there are unusual keys on the keyboard

setleds:Sets the keyboard flags and Light Emitting Diodes (LEDs)

setmetamode:Defines the keyboard meta-key handling

setvtrgb:Sets the console color map in all virtual terminals

showkey:Reports the scancodes, keycodes, and ASCII codes of the keys pressed on the keyboard

unicode_start:Puts the keyboard and console in UNICODE mode [Don’t use this program unless your keymap file is in the ISO-8859-1 encoding. For other encodings, this utility produces incorrect results.]

unicode_stop:Reverts keyboard and console from UNICODE mode

与控制台字体有关的命令

  • showconsolefont,显示当前的 EGA/VGA 控制台屏幕字体。
  • setfont,改变在控制台中的 EGA(Enhanced Graphic Adapter)和 VGA(Video Graphics Array)的字体。

性质

提供控制台字体配置

注意,这里的字体与 X Window 中的字体不是同一个概念。

构建

apt-get install kbd

参考