X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=ui.h;h=5cdd87357412ee2b2c9bb7151b6ecdc65359ed9c;hb=c3ff1f082b1f67fe5bcb535b43825356fc8800aa;hp=0444e69f06c9eebd27ca0871e0812b5bd2783448;hpb=8c3f50479d2b84db00ed9b8305ca92a5b56ba32e;p=pkg%2Fabook.git diff --git a/ui.h b/ui.h index 0444e69..5cdd873 100644 --- a/ui.h +++ b/ui.h @@ -9,17 +9,18 @@ enum { }; int is_ui_initialized(); +void ui_init_curses(); int init_ui(); void close_ui(); void headerline(char *str); void refresh_screen(); -void statusline_msg(char *msg); -char *ask_filename(char *prompt, int flags); +int statusline_msg(char *msg); +char *ask_filename(char *prompt); int statusline_ask_boolean(char *msg, int def); void clear_statusline(); void display_help(int help); void statusline_addstr(char *str); -char *statusline_getnstr(char *str, int n, int use_filesel); +char * ui_readline(char *prompt, char *s, int limit, bool use_completion); void refresh_statusline(); void get_commands(); void ui_remove_items(); @@ -34,8 +35,7 @@ void ui_open_datafile(); #include "options.h" /* needed for options_get_int */ -#define UI_HLINE_CHAR options_get_int("use_ascii_only") ? \ +#define UI_HLINE_CHAR opt_get_bool(BOOL_USE_ASCII_ONLY) ? \ '-' : ACS_HLINE - #endif