diff options
author | ed <ed@FreeBSD.org> | 2009-06-14 12:04:34 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-06-14 12:04:34 +0000 |
commit | 1d472053cc375e2bcff77665b64e088d7e0f97ac (patch) | |
tree | 4c2dbd324cb39340a25e285e1f0f661b558dd50c /sys/dev/syscons | |
parent | 553f130d1547c2cb0f4c21f9a85b94de66110de0 (diff) | |
download | FreeBSD-src-1d472053cc375e2bcff77665b64e088d7e0f97ac.zip FreeBSD-src-1d472053cc375e2bcff77665b64e088d7e0f97ac.tar.gz |
Add more entries to the Unicode-to-CP437 table.
Characters between 0x07 and 0x0d are now also mapped, which means we can
display almost 256 different characters. Also remap certain types of
dashes and quotes, which means we can finally read our manual pages
without red question marks in them.
Submitted by: Christoph Mallon
Diffstat (limited to 'sys/dev/syscons')
-rw-r--r-- | sys/dev/syscons/scterm-teken.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/sys/dev/syscons/scterm-teken.c b/sys/dev/syscons/scterm-teken.c index 4bed9aa..1327322 100644 --- a/sys/dev/syscons/scterm-teken.c +++ b/sys/dev/syscons/scterm-teken.c @@ -376,11 +376,15 @@ static const struct unicp437 cp437table[] = { { 0x03b4, 0xeb, 0x00 }, { 0x03b5, 0xee, 0x00 }, { 0x03c0, 0xe3, 0x00 }, { 0x03c3, 0xe5, 0x00 }, { 0x03c4, 0xe7, 0x00 }, { 0x03c6, 0xed, 0x00 }, - { 0x203c, 0x13, 0x00 }, { 0x207f, 0xfc, 0x00 }, - { 0x20a7, 0x9e, 0x00 }, { 0x2190, 0x1b, 0x00 }, - { 0x2191, 0x18, 0x00 }, { 0x2192, 0x1a, 0x00 }, - { 0x2193, 0x19, 0x00 }, { 0x2194, 0x1d, 0x00 }, - { 0x2195, 0x12, 0x00 }, { 0x21a8, 0x17, 0x00 }, + { 0x2010, 0x2d, 0x00 }, { 0x2014, 0x2d, 0x00 }, + { 0x2018, 0x60, 0x00 }, { 0x2019, 0x27, 0x00 }, + { 0x201c, 0x22, 0x00 }, { 0x201d, 0x22, 0x00 }, + { 0x2022, 0x07, 0x00 }, { 0x203c, 0x13, 0x00 }, + { 0x207f, 0xfc, 0x00 }, { 0x20a7, 0x9e, 0x00 }, + { 0x2190, 0x1b, 0x00 }, { 0x2191, 0x18, 0x00 }, + { 0x2192, 0x1a, 0x00 }, { 0x2193, 0x19, 0x00 }, + { 0x2194, 0x1d, 0x00 }, { 0x2195, 0x12, 0x00 }, + { 0x21a8, 0x17, 0x00 }, { 0x2212, 0x2d, 0x00 }, { 0x2219, 0xf9, 0x00 }, { 0x221a, 0xfb, 0x00 }, { 0x221e, 0xec, 0x00 }, { 0x221f, 0x1c, 0x00 }, { 0x2229, 0xef, 0x00 }, { 0x2248, 0xf7, 0x00 }, @@ -412,10 +416,12 @@ static const struct unicp437 cp437table[] = { { 0x2591, 0xb0, 0x02 }, { 0x25a0, 0xfe, 0x00 }, { 0x25ac, 0x16, 0x00 }, { 0x25b2, 0x1e, 0x00 }, { 0x25ba, 0x10, 0x00 }, { 0x25bc, 0x1f, 0x00 }, - { 0x25c4, 0x11, 0x00 }, { 0x263a, 0x01, 0x01 }, - { 0x263c, 0x0f, 0x00 }, { 0x2660, 0x06, 0x00 }, - { 0x2663, 0x05, 0x00 }, { 0x2665, 0x03, 0x01 }, - { 0x266b, 0x0e, 0x00 }, + { 0x25c4, 0x11, 0x00 }, { 0x25cb, 0x09, 0x00 }, + { 0x25d8, 0x08, 0x00 }, { 0x25d9, 0x0a, 0x00 }, + { 0x263a, 0x01, 0x01 }, { 0x263c, 0x0f, 0x00 }, + { 0x2640, 0x0c, 0x00 }, { 0x2642, 0x0b, 0x00 }, + { 0x2660, 0x06, 0x00 }, { 0x2663, 0x05, 0x00 }, + { 0x2665, 0x03, 0x01 }, { 0x266a, 0x0d, 0x01 }, }; static void |