X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=ui.h;h=0444e69f06c9eebd27ca0871e0812b5bd2783448;hb=8c3f50479d2b84db00ed9b8305ca92a5b56ba32e;hp=fa20dd207744934de5d6f503db7d667a15d94eb0;hpb=3212da92838c056bcc1cafa57beaf26086e2ac96;p=pkg%2Fabook.git diff --git a/ui.h b/ui.h index fa20dd2..0444e69 100644 --- a/ui.h +++ b/ui.h @@ -7,7 +7,6 @@ enum { HELP_MAIN, HELP_EDITOR }; - int is_ui_initialized(); int init_ui(); @@ -16,6 +15,7 @@ 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 +32,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