X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;ds=sidebyside;f=ui.h;h=0444e69f06c9eebd27ca0871e0812b5bd2783448;hb=8c3f50479d2b84db00ed9b8305ca92a5b56ba32e;hp=6b6c74291da37f11fb8c0ea5bdd75009178f75b2;hpb=af90a0834fb7f729d77b1312f58c80b187043218;p=pkg%2Fabook.git diff --git a/ui.h b/ui.h index 6b6c742..0444e69 100644 --- a/ui.h +++ b/ui.h @@ -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