pull request 229/#H9299 - DECgraphics for curses

Fixes #230

Incorporate github pull request #230, support for DECgraphics-style
line drawing in the curses interface.  I've rewritten the
curses_convert_glyph() part so that it doesn't require C99 and
doesn't reinitialize its pair of arrays for every character written
to the map.  The DECgraphics conversion is now a straight char for
char one, DEC line drawing code to ACS, without regard to what map
symbol is intended or what 'cursesgraphics' uses for that symbol.
This commit is contained in:
PatR
2019-10-13 17:41:24 -07:00
parent f200397689
commit 027ce7c8b9
5 changed files with 150 additions and 57 deletions

View File

@@ -658,9 +658,11 @@ curses_print_glyph(winid wid, XCHAR_P x, XCHAR_P y, int glyph,
if ((special & MG_DETECT) && iflags.use_inverse) {
attr = A_REVERSE;
}
if (!symset[PRIMARY].name || !strcmpi(symset[PRIMARY].name, "curses")) {
ch = curses_convert_glyph(ch, glyph);
}
if (SYMHANDLING(H_DEC))
ch = curses_convert_glyph(TRUE, ch, glyph);
else if (!symset[PRIMARY].name || !strcmpi(symset[PRIMARY].name, "curses"))
ch = curses_convert_glyph(FALSE, ch, glyph);
if (wid == NHW_MAP) {
/* hilite stairs not in 3.6, yet
if ((special & MG_STAIRS) && iflags.hilite_hidden_stairs) {