mirror of
https://codeberg.org/noisytoot/notnotdnethack.git
synced 2024-11-24 18:25:09 +00:00
Ron Nazarov
45a8d949e2
MENU_COLOR is now non-optional (at compile-time, you can still disable menucolors at runtime). The POSIX regular expression is consistently used everywhere (previously, menucolors could use either the POSIX or the GNU interface depending on a compile-time option, defaulting to GNU, user sounds always used GNU, and everything else used POSIX). MENU_COLOR_REGEX, MENU_COLOR_REGEX_POSIX, and USER_SOUNDS_REGEX have been replaced by the new menucolor_regex and usersound_regex options. menucolor_regex defaults to TRUE to maintain backwards compatibility with old configs, but usersound_regex defaults to FALSE for consistency with apexception_regex and and msgtype_regex.
26 lines
1,004 B
C
26 lines
1,004 B
C
/* vim:set cin ft=c sw=4 sts=4 ts=8 et ai cino=Ls\:0t0(0 : -*- mode:c;fill-column:80;tab-width:8;c-basic-offset:4;indent-tabs-mode:nil;c-file-style:"k&r" -*-*/
|
|
|
|
#ifndef CURSDIAL_H
|
|
# define CURSDIAL_H
|
|
|
|
# include <regex.h>
|
|
|
|
/* Global declarations */
|
|
|
|
void curses_line_input_dialog(const char *prompt, char *answer, int buffer);
|
|
int curses_character_input_dialog(const char *prompt, const char *choices,
|
|
char def);
|
|
int curses_ext_cmd(void);
|
|
void curses_create_nhmenu(winid wid);
|
|
void curses_add_nhmenu_item(winid wid, int glyph, const anything * identifier,
|
|
char accelerator, char group_accel, int attr,
|
|
const char *str, boolean presel);
|
|
boolean get_menu_coloring(char *, int *, int *);
|
|
void curses_finalize_nhmenu(winid wid, const char *prompt);
|
|
int curses_display_nhmenu(winid wid, int how, menu_item ** _selected);
|
|
boolean curses_menu_exists(winid wid);
|
|
void curses_del_menu(winid wid);
|
|
|
|
|
|
|
|
#endif /* CURSDIAL_H */
|