mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
ff0ef2c596
commit
324f7abb7f
1 changed files with 15 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue