208 lines
4.5 KiB
HTML
208 lines
4.5 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of MAPSCRN</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>MAPSCRN</H1>
|
|
Section: International Support (8)<BR>Updated: 20 March 1993<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
mapscrn - load screen output mapping table
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>mapscrn</B> [<B>-V</B>] [<B>-v</B>] [<B>-o</B>
|
|
|
|
<I>map.orig</I>]
|
|
|
|
<I>mapfile</I>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
The
|
|
<B>mapscrn</B>
|
|
|
|
command is obsolete - its function is now built-in into setfont.
|
|
However, for backwards compatibility it is still available
|
|
as a separate command.
|
|
<P>
|
|
|
|
The
|
|
<I>mapscrn</I>
|
|
|
|
command loads a user defined output character mapping table into the
|
|
console driver. The console driver may be later put into
|
|
<B>use user-defined mapping table</B>
|
|
|
|
mode by outputting a special escape sequence to the console device.
|
|
This sequence is
|
|
<I><esc>(K</I>
|
|
|
|
for the
|
|
<B>G0 </B>
|
|
|
|
character set and
|
|
<I><esc>)K</I>
|
|
|
|
for the
|
|
<B>G1</B>
|
|
|
|
character set.
|
|
When the
|
|
<I>-o</I>
|
|
|
|
option is given, the old map is saved in
|
|
<I>map.orig.</I>
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>USE</H2>
|
|
|
|
There are two kinds of mapping tables: direct-to-font tables,
|
|
that give a font position for each user byte value, and user-to-unicode
|
|
tables that give a unicode value for each user byte. The corresponding
|
|
glyph is now found using the unicode index of the font.
|
|
The command
|
|
<DL COMPACT><DT id="1"><DD>
|
|
mapscrn trivial
|
|
</DL>
|
|
|
|
sets up a one-to-one direct-to-font table where user bytes
|
|
directly address the font. This is useful for fonts that are
|
|
in the same order as the character set one uses.
|
|
A command like
|
|
<DL COMPACT><DT id="2"><DD>
|
|
mapscrn 8859-2
|
|
</DL>
|
|
|
|
sets up a user-to-unicode table that assumes that the user
|
|
uses ISO 8859-2.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>INPUT FORMAT</H2>
|
|
|
|
The
|
|
<I>mapscrn</I>
|
|
|
|
command can read the map in either of two formats:
|
|
<BR>
|
|
|
|
1. 256 or 512 bytes binary data
|
|
<BR>
|
|
|
|
2. two-column text file
|
|
<BR>
|
|
|
|
Format (1) is a direct image of the translation
|
|
<I>table. The 256-bytes tables are direct-to-font,</I>
|
|
|
|
the 512-bytes tables are user-to-unicode tables.
|
|
Format (2) is used to fill the
|
|
<I>table</I>
|
|
|
|
as follows: cell with offset mentioned in the first column is filled
|
|
with the value mentioned in the second column.
|
|
When values larger than 255 occur, or values are written using
|
|
the U+xxxx notation, the table is assumed to be a user-to-unicode
|
|
table, otherwise it is a direct-to-font table.
|
|
<P>
|
|
|
|
Values in the file may be specified in one of several
|
|
<B>formats:</B>
|
|
|
|
<BR>
|
|
|
|
<B>1. Decimal: </B>
|
|
|
|
String of decimal digits not starting with '0'
|
|
<BR>
|
|
|
|
<B>2. Octal: </B>
|
|
|
|
String of octal digits beginning with '0'.
|
|
<BR>
|
|
|
|
<B>3. Hexadecimal: </B>
|
|
|
|
String of hexadecimal digits preceded by "0x".
|
|
<BR>
|
|
|
|
<B>4. Unicode:</B>
|
|
|
|
String of four hexadecimal digits preceded by "U+".
|
|
<BR>
|
|
|
|
<B>5. Character: </B>
|
|
|
|
Single character enclosed in single quotes. (And the binary value is used.)
|
|
Note that blank, comma, tab character and '#' cannot be specified
|
|
with this format.
|
|
<BR>
|
|
|
|
<B>6. UTF-8 Character:</B>
|
|
|
|
Single (possibly multi-byte) UTF-8 character, enclosed in single quotes.
|
|
<P>
|
|
|
|
Note that control characters (with codes < 32) cannot be re-mapped with
|
|
<I>mapscrn</I>
|
|
|
|
because they have special meaning for the driver.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>OTHER OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="3"><B>-V</B>
|
|
|
|
<DD>
|
|
Prints version number and exits.
|
|
<DT id="4"><B>-v</B>
|
|
|
|
<DD>
|
|
Be verbose.
|
|
</DL>
|
|
<A NAME="lbAH"> </A>
|
|
<H2>FILES</H2>
|
|
|
|
<I>/usr/share/consoletrans</I>
|
|
|
|
is the default directory for screen mappings.
|
|
<A NAME="lbAI"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<I><A HREF="/cgi-bin/man/man2html?8+setfont">setfont</A></I>(8)
|
|
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Copyright (C) 1993 Eugene G. Crosser
|
|
<BR>
|
|
|
|
<<A HREF="mailto:crosser@pccross.msk.su">crosser@pccross.msk.su</A>>
|
|
<BR>
|
|
|
|
This software and documentation may be distributed freely.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="5"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="6"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="7"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="8"><A HREF="#lbAE">USE</A><DD>
|
|
<DT id="9"><A HREF="#lbAF">INPUT FORMAT</A><DD>
|
|
<DT id="10"><A HREF="#lbAG">OTHER OPTIONS</A><DD>
|
|
<DT id="11"><A HREF="#lbAH">FILES</A><DD>
|
|
<DT id="12"><A HREF="#lbAI">SEE ALSO</A><DD>
|
|
<DT id="13"><A HREF="#lbAJ">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:13 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|