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

Function get_menu_coloring

src/windows.c:1840–1853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1838}
1839
1840staticfn boolean
1841get_menu_coloring(const char *str, int *color, int *attr)
1842{
1843 struct menucoloring *tmpmc;
1844
1845 if (iflags.use_menu_color)
1846 for (tmpmc = gm.menu_colorings; tmpmc; tmpmc = tmpmc->next)
1847 if (regex_match(str, tmpmc->match)) {
1848 *color = tmpmc->color;
1849 *attr = tmpmc->attr;
1850 return TRUE;
1851 }
1852 return FALSE;
1853}
1854
1855int
1856select_menu(winid window, int how, menu_item **menu_list)

Callers 1

add_menuFunction · 0.85

Calls 1

regex_matchFunction · 0.50

Tested by

no test coverage detected