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) |
|
282 { |
|
283 auto attrfunction = (byte < RLINE_OFF_COLOR ? &attron : &attroff); |
|
284 (*attrfunction) (color_pair (Color ((byte - RLINE_ON_COLOR) & 7), DEFAULT)); |
|
285 } |
281 else switch (byte) |
286 else switch (byte) |
282 { |
287 { |
283 case RLINE_ON_BOLD: |
288 case RLINE_ON_BOLD: |
284 attron (A_BOLD); |
289 attron (A_BOLD); |
285 break; |
290 break; |
286 |
291 |
287 case RLINE_OFF_BOLD: |
292 case RLINE_OFF_BOLD: |
288 attroff (A_BOLD); |
293 attroff (A_BOLD); |
289 break; |
|
290 |
|
291 default: |
|
292 if (byte < 256) |
|
293 break; |
|
294 |
|
295 (byte < RLINE_OFF_COLOR ? attron : attroff) (color_pair (Color ((byte - RLINE_ON_COLOR) & 7), DEFAULT)); |
|
296 break; |
294 break; |
297 } |
295 } |
298 } |
296 } |
299 |
297 |
300 return y + 1; |
298 return y + 1; |