MCPcopy Create free account
hub / github.com/NetHack/NetHack / term_start_attr

Function term_start_attr

sys/windows/consoletty.c:1664–1685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1662}
1663
1664void
1665term_start_attr(int attrib)
1666{
1667#ifdef VIRTUAL_TERMINAL_SEQUENCES
1668 switch (attrib) {
1669 case ATR_INVERSE:
1670 console.attr |= atr_inverse;
1671 break;
1672 case ATR_ULINE:
1673 console.attr |= atr_uline;
1674 break;
1675 case ATR_BLINK:
1676 console.attr |= atr_blink;
1677 break;
1678 case ATR_BOLD:
1679 console.attr |= atr_bold;
1680 break;
1681 }
1682#endif /* VIRTUAL_TERMINAL_SEQUENCES */
1683 console.current_nhattr[attrib] = TRUE;
1684 if (attrib) console.current_nhattr[ATR_NONE] = FALSE;
1685}
1686
1687void
1688term_end_attr(int attrib)

Callers 2

term_start_raw_boldFunction · 0.70
standoutbegFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected