X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=ui.h;h=0444e69f06c9eebd27ca0871e0812b5bd2783448;hb=878783c290ace81f4b86ba2d2d5406d69f367421;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