summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/viewchar.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-04-01 11:05:22 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-04-01 16:59:14 +0200
commit5073be524e3b31c77288e81a6203b46788bec664 (patch)
tree406be22000af5941fb5d1dcc33fb649f285dbd27 /crawl-ref/source/viewchar.cc
parent5a244b327fc758b05b88533f43b174fb7e4e4c69 (diff)
downloadcrawl-ref-5073be524e3b31c77288e81a6203b46788bec664.tar.gz
crawl-ref-5073be524e3b31c77288e81a6203b46788bec664.zip
Add comments showing encoded glyphs for > ASCII glyph sets.
It's only compiling on Windows what keeps us from writing these as literals right in the source, too.
Diffstat (limited to 'crawl-ref/source/viewchar.cc')
-rw-r--r--crawl-ref/source/viewchar.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/crawl-ref/source/viewchar.cc b/crawl-ref/source/viewchar.cc
index 1806c61448..bc3c125e79 100644
--- a/crawl-ref/source/viewchar.cc
+++ b/crawl-ref/source/viewchar.cc
@@ -14,13 +14,17 @@ static const unsigned dchar_table[ NUM_CSET ][ NUM_DCHAR_TYPES ] =
// It must be limited to stuff present both in CP437 and WGL4.
{
'#', '*', '.', ',', '\'', '+', '^', '>', '<',
+ // ∩ ⌠ ≈
'#', '_', 0x2229, 0x2320, 0x2248, '8', '{',
#if defined(TARGET_OS_WINDOWS) && !defined(USE_TILE_LOCAL)
+ // ⌂
0x2302, // CP437 but "optional" in WGL4
#else
+ // ∆
0x2206, // WGL4 and DEC
#endif
'0', ')', '[', '/', '%', '?', '=', '!', '(',
+ // § ♣
':', '|', '}', '%', '$', '"', 0xA7, 0x2663,
' ', '!', '#', '%', '+', ')', '*', '+', // space .. fired_burst
'/', '=', '?', 'X', '[', '`', '#' // fi_stick .. explosion
@@ -37,9 +41,12 @@ static const unsigned dchar_table[ NUM_CSET ][ NUM_DCHAR_TYPES ] =
// CSET_IBM - this is ANSI 437
{
+ // ▒ ░ ∙ · ' ■
0x2592, 0x2591, 0x2219, 0xb7, '\'', 0x25a0, '^', '>', '<', // wall .. stairs up
+ // ▄ ∩ ⌠ ≈
'#', 0x2584, 0x2229, 0x2320, 0x2248, '8', '{', '{', // grate .. item detect
'0', ')', '[', '/', '%', '?', '=', '!', '(', // orb .. missile
+ // ∞ \ Ω
0x221e, '\\', '}', '%', '$', '"', '#', 0x3a9, // book .. tree
' ', '!', '#', '%', '+', ')', '*', '+', // space .. fired_burst
'/', '=', '?', 'X', '[', '`', '#' // fi_stick .. explosion
@@ -48,7 +55,9 @@ static const unsigned dchar_table[ NUM_CSET ][ NUM_DCHAR_TYPES ] =
// CSET_DEC
// It's better known as "vt100 line drawing characters".
{
+ // ▒ ♦ · ' ┼
0x2592, 0x2666, 0xb7, ':', '\'', 0x253c, '^', '>', '<', // wall .. stairs up
+ // π ¶ § » → ¨
'#', 0x3c0, 0xb6, 0xa7, 0xbb, '8', 0x2192, 0xa8, // grate .. item detect
'0', ')', '[', '/', '%', '?', '=', '!', '(', // orb .. missile
':', '\\', '}', '%', '$', '"', '#', '7', // book .. tree
@@ -60,14 +69,17 @@ static const unsigned dchar_table[ NUM_CSET ][ NUM_DCHAR_TYPES ] =
/* Beware, some popular terminals (PuTTY, xterm) are incapable of coping with
the lack of a character in the chosen font, and most popular fonts have a
quite limited repertoire. A subset that is reasonably likely to be present
- is http://en.wikipedia.org/wiki/WGL4; we could provide a richer alternate
+ is https://en.wikipedia.org/wiki/WGL4; we could provide a richer alternate
set for those on more capable terminals (including for example Thai 0xEB0
for clouds), but that would require decoupling encoding from charset.
*/
{
+ // ▒ ░ · ◦ ' ◼
0x2592, 0x2591, 0xB7, 0x25E6, '\'', 0x25FC, '^', '>', '<',
+ // ∩ ⌠ ≈ ∆
'#', '_', 0x2229, 0x2320, 0x2248, '8', '{', 0x2206,
'0', ')', '[', '/', '%', '?', '=', '!', '(',
+ // ∞ § ♣
0x221E, '|', '}', '%', '$', '"', 0xA7, 0x2663,
' ', '!', '#', '%', '+', ')', '*', '+', // space .. fired_burst
'/', '=', '?', 'X', '[', '`', '#' // fi_stick .. explosion