MCPcopy Index your code
hub / github.com/NetHack/NetHack / add_menu_str

Function add_menu_str

src/windows.c:1831–1838  ·  view source on GitHub ↗

insert a non-selectable, unhighlighted line of text into a menu */

Source from the content-addressed store, hash-verified

1829
1830/* insert a non-selectable, unhighlighted line of text into a menu */
1831void
1832add_menu_str(winid tmpwin, const char *buf)
1833{
1834 anything any = cg.zeroany;
1835
1836 add_menu(tmpwin, &nul_glyphinfo, &any, '\0', '\0', ATR_NONE, NO_COLOR,
1837 buf, MENU_ITEMFLAGS_NONE);
1838}
1839
1840staticfn boolean
1841get_menu_coloring(const char *str, int *color, int *attr)

Callers 15

ask_do_tutorialFunction · 0.85
handler_menustyleFunction · 0.85
handler_msg_windowFunction · 0.85
handler_whatis_coordFunction · 0.85
doset_simple_menuFunction · 0.85
dosetFunction · 0.85
choose_disco_sortFunction · 0.85
enhance_weapon_skillFunction · 0.85
nhl_textFunction · 0.85
restore_menuFunction · 0.85
invent.cFile · 0.85
invdisp_nothingFunction · 0.85

Calls 1

add_menuFunction · 0.85

Tested by

no test coverage detected