Initial import from FreeBSD RELENG_4:
[games.git] / usr.sbin / pcvt / Misc / Doc / Charsets
1
2 I.      Character Set Selection on VT220 Terminals
3 ==================================================
4
5
6 name     C0            GL            C1            GR
7         +---+ +-------------------+ +---+ +-------------------+
8         |00h| |                   | |80h| |                   |
9 range   | | | |    20h .. 7fh     | | | | |    a0h .. ffh     |
10         |1fh| |                   | |9fh| |                   |
11         +---+ +-------------------+ +---+ +-------------------+
12 length   32            96            32            96           
13
14            /\
15 SECOND    /||\  "lock"- or "single"-shift one set of G0, G1, G2 or
16 STEP       ||   G3 into one of the "displayable" charactersets GL
17            ||   or GR. (escape) sequences are: SI, SO, ESC ~, ESC n,
18            ||   ESC }, ESC o, ESC |, ESC N and ESC O.           
19
20         +----+         +----+          +----+            +----+    
21 name    | G0 |         | G1 |          | G2 |            | G3 |
22 length  |(96)|         |(96)|          |(96)|            |(96)|
23         +----+         +----+          +----+            +----+    
24
25            /\
26           /||\  designate a hard or a soft character set as 
27            ||   one of G0, G1, G2 or G3, used escape sequences
28 FIRST      ||   are, ESC ( X, ESC ) X, ESC * X and ESC + X - where X is
29 STEP       ||   B for ascii, < for supplemental, 0 for special, A for
30            ||   british, 4 for dutch, C and 5 for finnish etc. etc. ...
31            ||
32
33         +-----+ +------------+ +--------+ +-----------+ +------------+
34 name    |ascii| |supplemental| |special | | national  | |downloadable|
35         |     | |  graphics  | |graphics| |replacement| |characterset|
36 length  | (96)| |        (96)| |    (96)| |       (96)| |        (96)|
37         +-----+ +------------+ +--------+ +-----------+ +------------+
38
39         \-------\ /----------/             norway/danish
40                  |                         dutch
41         together, this is also             finnish
42         referred to as the                 french
43         multinational character            french canada
44         set (power on default              german
45         on a dec vt220)                    italian
46                                            spanish
47                                            swedish
48                                            swiss
49
50
51 II.     Emulating Character Set Selection
52 =========================================
53
54 MDA/HCG/CGA:
55
56         just a partial emulation is done, because these boards don't allow
57         downloadable charactersets. some characters simply don't display
58         because they are not in the characterset roms on the video board.
59
60         if you want to change the mapping, have a look at the default tables
61         in pcvt_tbl.h.
62
63 EGA/VGA:
64
65         these cards have provisions for downloadable charactersets and so
66         many vt220/vt320 charactersets are fully supported:
67
68                 - US Ascii
69                 - DEC Supplemental
70                 - DEC Special Graphic
71                 - DEC Technical
72                 - ISO Latin-1
73                 - Downloadable
74
75         when the emulator is started, it behaves initially similar to
76         the MDA/CGA/HCG method described above.
77
78         when a second (special) characterset for a given screen resolution
79         is loaded via the "loadfont" utility, the emulator detects this fact
80         and uses from then on extended tables to access the second charset
81         as an upper half 512 characterset in terms of ega/vga speak.
82
83         from this time on, vt220 downloadable fonts are usable.
84
85         the organization of this extended characterset is as follows:
86
87                 0x00 ... 0x1f   C0 display function fonts
88                 0x20 ... 0x3f   C1 display function fonts
89                 0x40 ... 0x9f   fonts for DEC Supplemental, DEC Special
90                                 Graphic, DEC Technical and ISO Latin-1
91                 0xa0 ... 0xff   VT220 Downloadable Font
92         
93         the mapping between vt220 charactersets and the charactersets inside
94         the ega/vga is done by tables found in the file pcvt_tbl.h.
95         
96         there is a MSDOS fonteditor called "EVAFONT" available on the
97         SIMTEL-20 archive, which i used to edit the character sets in the
98         distribution.
99