| 5399 | } |
| 5400 | |
| 5401 | staticfn void |
| 5402 | yn_func_menu_opt(winid win, char key, const char *text, char def) |
| 5403 | { |
| 5404 | anything any; |
| 5405 | |
| 5406 | any = cg.zeroany; |
| 5407 | any.a_char = key; |
| 5408 | add_menu(win, &nul_glyphinfo, &any, key, 0, |
| 5409 | ATR_NONE, NO_COLOR, text, |
| 5410 | (def == key) ? MENU_ITEMFLAGS_SELECTED |
| 5411 | : MENU_ITEMFLAGS_NONE); |
| 5412 | |
| 5413 | } |
| 5414 | |
| 5415 | /* use a menu to ask a specific response to a query. |
| 5416 | returns TRUE if the menu was shown to the user. |
no test coverage detected