X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=ui.h;h=e312abd1d294bf813c8aab76940e236c4aea0f4f;hb=08647c0fa571eb3a07490ab0971dc89677775537;hp=6b6c74291da37f11fb8c0ea5bdd75009178f75b2;hpb=af90a0834fb7f729d77b1312f58c80b187043218;p=pkg%2Fabook.git diff --git a/ui.h b/ui.h index 6b6c742..e312abd 100644 --- a/ui.h +++ b/ui.h @@ -9,6 +9,7 @@ enum { }; int is_ui_initialized(); +void ui_init_curses(); int init_ui(); void close_ui(); void headerline(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