Fall back to ASCII codepoints for box drawing.

Even though the default VGA font provides box drawing fonts, there is no
guarantee any font will provide these as well (i.e. ISO-8859-*, KOI8-R).
Just use ASCII characters for box drawing.

PR:		kern/141633
This commit is contained in:
Ed Schouten 2010-02-08 09:16:59 +00:00
parent 93f0162799
commit e7fe3cf158

View File

@ -41,12 +41,12 @@ static const uint16_t teken_boxdrawing_unicode[31] = {
0x2502, 0x2264, 0x2265, 0x03c0, 0x2260, 0x00a3, 0x00b7
};
/* CP437 points for VT100 box drawing. */
/* ASCII points for VT100 box drawing. */
static const uint8_t teken_boxdrawing_8bit[31] = {
0x04, 0xb1, 0x48, 0x46, 0x43, 0x4c, 0xf8, 0xf1,
0x4e, 0x56, 0xd9, 0xbf, 0xda, 0xc0, 0xc5, 0xc4,
0xc4, 0xc4, 0xc4, 0xc4, 0xc3, 0xb4, 0xc1, 0xc2,
0xb3, 0xf3, 0xf2, 0xe3, 0xd8, 0x9c, 0xfa,
'?', '?', 'H', 'F', 'C', 'L', '?', '?',
'N', 'V', '+', '+', '+', '+', '+', '-',
'-', '-', '-', '-', '+', '+', '+', '+',
'|', '?', '?', '?', '?', '?', '?',
};
static teken_char_t