]> git.deb.at Git - pkg/abook.git/blobdiff - ui.h
use_ascii_only configuration option
[pkg/abook.git] / ui.h
diff --git a/ui.h b/ui.h
index 6b6c74291da37f11fb8c0ea5bdd75009178f75b2..0444e69f06c9eebd27ca0871e0812b5bd2783448 100644 (file)
--- 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