summaryrefslogtreecommitdiffstats
path: root/sys/teken
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-02-08 09:16:59 +0000
committered <ed@FreeBSD.org>2010-02-08 09:16:59 +0000
commite2c3b3c7fe753c650ed3898086a0eada16530d6b (patch)
tree766a13977b8e716cb053f0af497eca16917f4a7e /sys/teken
parent7d46cfed0ac84dccfd8d90b310cbcab4367c0059 (diff)
downloadFreeBSD-src-e2c3b3c7fe753c650ed3898086a0eada16530d6b.zip
FreeBSD-src-e2c3b3c7fe753c650ed3898086a0eada16530d6b.tar.gz
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
Diffstat (limited to 'sys/teken')
-rw-r--r--sys/teken/teken_scs.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/teken/teken_scs.h b/sys/teken/teken_scs.h
index 815e1d7..03e88f2 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
OpenPOWER on IntegriCloud