kbd_mode 中文man页面

系统
如果没有参数 kbd_mode 会显示当前键盘的模式,如果有参数,它会把键盘设置成相应的模式。

名称 (NAME)

kbd_mode - 显示或者设置键盘模式  

总览 (SYNOPSIS)

kbd_mode [ -auks ]

描述 (DESCRIPTION)

如果没有参数 kbd_mode 会显示当前键盘的模式,如果有参数,它会把键盘设置成相应的模式。

-s: 键盘 扫描码 模式 (原始),

-k: 键值 (keycode) 模式 (半原始),

-a: ASCII 模式 (XLATE),

-u: UTF-8 模式 (UNICODE)。

XLATE 模式 是 传统 模式, 所用的 代码 可以 是 任何 8-bit (8位) 的 字符集. 一般 这个 字符集 同 后面 用到 的 字符集 是 匹配 的, 在 它们 被传给 屏幕 后, 它们 会 根据 consolechars -m 选择的 字符集 在 内部 转换 为 Unicode,

UNICODE 模式, 键盘 会 产生 16位 的 字符, 这些 字符 会 以1, 2 或者 3 字节 的 形式 (UTF-8 编码) 传给 内核。 UTF-8 在这 后两种 模式中 要 用到 loadkeys(1) 定义的 键盘 映射 表。 警告: 如果 不是 把 键盘 模式 改为 ASCII 或者 Unicode, 很可能 会使 键盘 不可用。这个 命令 也 可以 在 有些 程序 使你的 键盘 处于 错误 状态时 用来 把 键盘 改回 XLATE 或者 UNICODE 模式 (比如 通过 远程 登录)。 在 有些 过时的 版本的 程序 中 -u-s 是 一样的。  

参见 (SEE ALSO)

loadkeys(1), consolechars(8).  

#p#

NAME

kbd_mode - report or set the keyboard mode  

SYNOPSIS

kbd_mode [ -a | -u | -k | -s ]  

DESCRIPTION

Without argument, kbd_mode prints the current keyboard mode (RAW, MEDIUMRAW or XLATE). With argument, it sets the keyboard mode as indicated:

-s: scancode mode (RAW),

-k: keycode mode (MEDIUMRAW),

-a: ASCII mode (XLATE),

-u: UTF-8 mode (UNICODE).

Of course the "-a" is only traditional, and the code used can be any 8-bit character set. With "-u" a 16-bit character set is expected, and these chars are transmitted to the kernel as 1, 2, or 3 bytes (following the UTF-8 coding). In these latter two modes the key mapping defined by loadkeys(1) is used.

Warning: changing the keyboard mode, other than between ASCII and Unicode, will probably make your keyboard unusable. This command is only meant for use (say via remote login) when some program left your keyboard in the wrong state. Note that in some obsolete versions of this program the "-u" option was a synonym for "-s".  

SEE ALSO

loadkeys(1)

责任编辑:韩亚珊 来源: CMPP.net
相关推荐

2011-08-15 11:06:17

kbd_mode中文man

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-11-01 13:46:50

中文mantac

2011-08-25 16:55:26

gets中文man

2011-08-25 15:49:02

freopen中文man

2011-08-25 16:00:56

fflush中文man

2011-08-25 16:08:55

fsetpos中文man

2011-08-25 15:33:18

exit中文man

2011-08-24 17:19:00

raw中文man

2011-08-25 10:55:37

services中文man

2011-08-25 09:35:26

units中文man

2011-08-24 13:57:35

DECLARE中文man

2011-08-11 15:28:43

ali中文man

2011-08-23 17:24:11

userdel中文man

2011-08-23 17:33:22

rdev中文man

2011-08-23 18:05:21

ABORT中文man

2011-08-18 19:15:25

group中文man
点赞
收藏

51CTO技术栈公众号