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

Function get_framecolor

win/curses/curswins.c:766–771  ·  view source on GitHub ↗

convert nhcolor (fg) and framecolor (bg) to curses colorpair */

Source from the content-addressed store, hash-verified

764
765/* convert nhcolor (fg) and framecolor (bg) to curses colorpair */
766int
767get_framecolor(int nhcolor, int framecolor)
768{
769 /* curses_toggle_color_attr() adds the +1 and takes care of COLORS < 16 */
770 return (16 * (framecolor % 8)) + (nhcolor % 16);
771}
772
773static void
774write_char(WINDOW * win, int x, int y, nethack_char nch)

Callers 2

write_charFunction · 0.85
curses_print_glyphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected