From e7fe3cf158f73bd9fecae4d82a4570ee5e5d5121 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Mon, 8 Feb 2010 09:16:59 +0000 Subject: [PATCH] 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 --- sys/teken/teken_scs.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/teken/teken_scs.h b/sys/teken/teken_scs.h index 815e1d7f668..03e88f29d0e 100644 --- a/sys/teken/teken_scs.h +++ b/sys/teken/teken_scs.h @@ -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