convert tty attributes to curses attributes; despite similar names, the mask fields have different values */
| 1408 | /* convert tty attributes to curses attributes; |
| 1409 | despite similar names, the mask fields have different values */ |
| 1410 | static int |
| 1411 | nhattr2curses(int attrmask) |
| 1412 | { |
| 1413 | int result = 0; |
| 1414 | |
| 1415 | if (attrmask & HL_BOLD) |
| 1416 | result |= A_BOLD; |
| 1417 | if (attrmask & HL_DIM) |
| 1418 | result |= A_DIM; |
| 1419 | if (attrmask & HL_ITALIC) |
| 1420 | result |= A_ITALIC; |
| 1421 | if (attrmask & HL_ULINE) |
| 1422 | result |= A_UNDERLINE; |
| 1423 | if (attrmask & HL_BLINK) |
| 1424 | result |= A_BLINK; |
| 1425 | if (attrmask & HL_INVERSE) |
| 1426 | result |= A_REVERSE; |
| 1427 | |
| 1428 | return result; |
| 1429 | } |
| 1430 | #endif /* STATUS_HILITES */ |
| 1431 | |
| 1432 | /*cursstat.c*/ |
no outgoing calls
no test coverage detected