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

Function term_end_attr

sys/windows/consoletty.c:1687–1721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1685}
1686
1687void
1688term_end_attr(int attrib)
1689{
1690 int k;
1691
1692 switch (attrib) {
1693 case ATR_INVERSE:
1694#ifdef VIRTUAL_TERMINAL_SEQUENCES
1695 console.attr &= ~atr_inverse;
1696 break;
1697#endif
1698 case ATR_ULINE:
1699#ifdef VIRTUAL_TERMINAL_SEQUENCES
1700 console.attr &= ~atr_uline;
1701 break;
1702#endif
1703 case ATR_BLINK:
1704#ifdef VIRTUAL_TERMINAL_SEQUENCES
1705 console.attr &= ~atr_blink;
1706 break;
1707#endif
1708 case ATR_BOLD:
1709#ifdef VIRTUAL_TERMINAL_SEQUENCES
1710 console.attr &= ~atr_bold;
1711#endif
1712 break;
1713 }
1714 console.current_nhattr[attrib] = FALSE;
1715 console.current_nhattr[ATR_NONE] = TRUE;
1716 /* re-evaluate all attr now for performance at output time */
1717 for (k=ATR_NONE; k <= ATR_INVERSE; ++k) {
1718 if (console.current_nhattr[k])
1719 console.current_nhattr[ATR_NONE] = FALSE;
1720 }
1721}
1722
1723void
1724term_end_raw_bold(void)

Callers 2

term_end_raw_boldFunction · 0.70
standoutendFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected