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

Function query_color_attr

src/coloratt.c:303–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303boolean
304query_color_attr(color_attr *ca, const char *prompt)
305{
306 int c, a;
307
308 c = query_color(prompt, ca->color);
309 if (c == -1)
310 return FALSE;
311 a = query_attr(prompt, ca->attr);
312 if (a == -1)
313 return FALSE;
314 ca->color = c;
315 ca->attr = a;
316 return TRUE;
317}
318
319const char *
320attr2attrname(int attr)

Callers 1

handler_menu_headingsFunction · 0.85

Calls 2

query_colorFunction · 0.85
query_attrFunction · 0.85

Tested by

no test coverage detected