X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=ui.h;h=e312abd1d294bf813c8aab76940e236c4aea0f4f;hb=68e6702fda55ba948e06a4240d20a44d2f0e87dc;hp=fa20dd207744934de5d6f503db7d667a15d94eb0;hpb=3212da92838c056bcc1cafa57beaf26086e2ac96;p=pkg%2Fabook.git diff --git a/ui.h b/ui.h index fa20dd2..e312abd 100644 --- a/ui.h +++ b/ui.h @@ -7,15 +7,16 @@ enum { HELP_MAIN, HELP_EDITOR }; - 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_ask_boolean(char *msg, int def); void clear_statusline(); void display_help(int help); void statusline_addstr(char *str); @@ -32,10 +33,10 @@ void ui_print_database(); void ui_open_datafile(); -#ifdef USE_ASCII_ONLY -# define UI_HLINE_CHAR '-' -#else -# define UI_HLINE_CHAR ACS_HLINE -#endif +#include "options.h" /* needed for options_get_int */ + +#define UI_HLINE_CHAR options_get_int("use_ascii_only") ? \ + '-' : ACS_HLINE + #endif