X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=ui.h;h=33107f8dabbf28d5319a43801c309c804cc3548c;hb=4128f78f5543bebc7cd1868736855207019f1f71;hp=0444e69f06c9eebd27ca0871e0812b5bd2783448;hpb=8c3f50479d2b84db00ed9b8305ca92a5b56ba32e;p=pkg%2Fabook.git diff --git a/ui.h b/ui.h index 0444e69..33107f8 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(); @@ -37,5 +38,4 @@ void ui_open_datafile(); #define UI_HLINE_CHAR options_get_int("use_ascii_only") ? \ '-' : ACS_HLINE - #endif