--- uae/src/include/tui.h 2018/04/24 16:38:39 1.1 +++ uae/src/include/tui.h 2018/04/24 16:39:24 1.1.1.2 @@ -1,5 +1,23 @@ -extern void display_interface(void); -extern void loadsets(char *); + /* + * UAE - The Un*x Amiga Emulator + * + * Text-based user interface + * Sie haben es sich verdient! + * + * Copyright 1996 Tim Gunn, Bernd Schmidt + */ + +/* This structure is used to define menus. The val field can hold key + * shortcuts, or one of these special codes: + * -3: end of table + * -2: line that is displayed, but not selectable + * -1: line that is selectable, but has no keyboard shortcut + * 0: Menu title + */ +struct bstring { + const char *data; + int val; +}; extern void tui_setup(void); extern void tui_shutdown(void); @@ -19,11 +37,13 @@ extern void tui_clrwin(int); extern void tui_selwin(int); extern int tui_dlog(int, int, int, int); +extern int tui_menubrowse(struct bstring *, int, int, int); + extern void tui_dlogdie(int); extern char *tui_filereq(char *, char *); extern void tui_drawbox(int); extern void tui_hline(int, int, int); -extern void tui_errorbox(char *); +extern void tui_errorbox(const char *); extern int tui_cols(void); extern int tui_lines(void);