Linux command
mapscrn 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Load a screen mapping table
mapscrn [mapfile]
Load from the standard map directory
mapscrn [trivial]
Save the current mapping table
mapscrn -o [old-map.bin] [new-map]
Reset to the trivial (identity) map
mapscrn trivial
Apply the map on a specific console
mapscrn -C /dev/tty3 [mapfile]
说明
mapscrn loads a screen output character mapping table for the Linux text console. The table tells the kernel how to translate the bytes written to /dev/tty_n_ into glyph indices in the currently loaded console font. Together with loadkeys (input mapping) and setfont (glyphs), it controls the legacy 8-bit console pipeline. To return to the identity mapping, load the trivial table (e.g. mapscrn trivial); there is no dedicated "clear" flag.
参数
- -o _FILE_, --output=_FILE_
- Save the previous mapping table to _FILE_ before loading the new one.
- -C _DEV_, --console=_DEV_
- Apply the change to the named console device (default: current TTY).
- -v, --verbose
- Verbose output.
- -V, --version
- Print version and exit.
- -h, --help
- Print usage and exit.
FAQ
What is the mapscrn command used for?
mapscrn loads a screen output character mapping table for the Linux text console. The table tells the kernel how to translate the bytes written to /dev/tty_n_ into glyph indices in the currently loaded console font. Together with loadkeys (input mapping) and setfont (glyphs), it controls the legacy 8-bit console pipeline. To return to the identity mapping, load the trivial table (e.g. mapscrn trivial); there is no dedicated "clear" flag.
How do I run a basic mapscrn example?
Run `mapscrn [mapfile]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -o _FILE_, --output=_FILE_ do in mapscrn?
Save the previous mapping table to _FILE_ before loading the new one.