File: mapscrn.8.gen

package info (click to toggle)
kbd 2.7.1-2%2Bexp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 16,852 kB
  • sloc: ansic: 13,572; javascript: 3,038; sh: 759; pascal: 643; makefile: 578; lex: 525; yacc: 352; perl: 126; python: 96; sed: 6
file content (127 lines) | stat: -rw-r--r-- 3,359 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
.\" @(#)man/man8/mapscrn.8	1.0 3/19/93 17:04:00
.TH MAPSCRN 8 "24 October 2024" "kbd"
.SH NAME
mapscrn \- load screen output mapping table
.SH SYNOPSIS
.BR mapscrn
[\fI\,options\/\fR]
.I mapfile
.SH DESCRIPTION
The
.B mapscrn
command is obsolete - its function is now built-in into setfont.
However, for backwards compatibility it is still available
as a separate command.
.LP
The
.I mapscrn
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
mode by outputting a special escape sequence to the console device.
This sequence is
.I <esc>(K
for the
.B G0
character set and
.I <esc>)K
for the
.B G1
character set.
When the
.I -o
option is given, the old map is saved in
.I map.orig.
.SH USE
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
.RS
mapscrn trivial
.RE
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
.RS
mapscrn 8859-2
.RE
sets up a user-to-unicode table that assumes that the user
uses ISO 8859-2.
.SH "INPUT FORMAT"
The
.I mapscrn
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,
the 512-bytes tables are user-to-unicode tables.
Format (2) is used to fill the
.I table
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.
.PP
Values in the file may be specified in one of several
.B formats:
.br
.B 1. Decimal:
String of decimal digits not starting with '0'
.br
.B 2. Octal:
String of octal digits beginning with '0'.
.br
.B 3. Hexadecimal:
String of hexadecimal digits preceded by "0x".
.br
.B 4. Unicode:
String of four hexadecimal digits preceded by "U+".
.br
.B 5. Character:
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:
Single (possibly multi-byte) UTF-8 character, enclosed in single quotes.
.PP
Note that control characters (with codes < 32) cannot be re-mapped with
.I mapscrn
because they have special meaning for the driver.
.SH OPTIONS
.TP
\fB\-o\fR, \fB\-\-output\fR=\fI\,FILE\/\fR
save the old map to the \fI\,FILE\/\fR.
.TP
\fB\-C\fR, \fB\-\-console\fR=\fI\,DEV\/\fR
the console device to be used.
.TP
\fB\-v\fR, \fB\-\-verbose\fR
be more verbose.
.TP
\fB\-V\fR, \fB\-\-version\fR
print version number.
.TP
\fB\-h\fR, \fB\-\-help\fR
print this usage message.
.SH FILES
.TP
.I @DATADIR@/@TRANSDIR@
The default directory for screen mappings.
.LP
.SH "SEE ALSO"
.IR setfont (8)
.SH AUTHOR
Copyright (C) 1993 Eugene G. Crosser
.br
<crosser@pccross.msk.su>
.br
This software and documentation may be distributed freely.