X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=ui.h;h=5cdd87357412ee2b2c9bb7151b6ecdc65359ed9c;hb=c3ff1f082b1f67fe5bcb535b43825356fc8800aa;hp=832007908a5c551dd4c0624a4a08f7ea75da05ad;hpb=ceba9214d8bebe32d0c34c7a82916bcb9d798d69;p=pkg%2Fabook.git diff --git a/ui.h b/ui.h index 8320079..5cdd873 100644 --- a/ui.h +++ b/ui.h @@ -15,12 +15,12 @@ void close_ui(); void headerline(char *str); void refresh_screen(); int statusline_msg(char *msg); -char *ask_filename(char *prompt, int flags); +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(); @@ -35,7 +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