sources/interface.cpp

changeset 102
3492f8f0ee7e
parent 101
71f1cd8154a9
child 105
b4466472aecd
equal deleted inserted replaced
101:71f1cd8154a9 102:3492f8f0ee7e
276 if (byte < 256 && isprint (byte)) 276 if (byte < 256 && isprint (byte))
277 { 277 {
278 mvaddch (y, x, char (byte)); 278 mvaddch (y, x, char (byte));
279 ++x; 279 ++x;
280 } 280 }
281 else if (byte >= RLINE_ON_COLOR and byte < RLINE_ON_BOLD) 281 else if (byte >= RLINE_ON_COLOR and byte < (RLINE_ON_COLOR + 16))
282 { 282 {
283 auto attrfunction = (byte < RLINE_OFF_COLOR ? &attron : &attroff); 283 auto attrfunction = (byte < RLINE_OFF_COLOR ? &attron : &attroff);
284 (*attrfunction) (color_pair (Color ((byte - RLINE_ON_COLOR) & 7), DEFAULT)); 284 (*attrfunction) (color_pair (Color ((byte - RLINE_ON_COLOR) & 7), DEFAULT));
285 } 285 }
286 else switch (byte) 286 else switch (byte)

mercurial