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

Function emit24bit

win/tty/termcap.c:1566–1575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1564static void emit256(int u256coloridx);
1565
1566static void emit24bit(long mcolor)
1567{
1568 static char tcolorbuf[QBUFSZ];
1569
1570 Snprintf(tcolorbuf, sizeof tcolorbuf, tcfmtstr,
1571 ((mcolor >> 16) & 0xFF), /* red */
1572 ((mcolor >> 8) & 0xFF), /* green */
1573 ((mcolor >> 0) & 0xFF)); /* blue */
1574 xputs(tcolorbuf);
1575}
1576
1577static void emit256(int color256idx)
1578{

Callers 1

term_start_extracolorFunction · 0.85

Calls 1

xputsFunction · 0.70

Tested by

no test coverage detected