]> git.deb.at Git - pkg/abook.git/blobdiff - ui.h
- code cleanups and minor fixes
[pkg/abook.git] / ui.h
diff --git a/ui.h b/ui.h
index 33107f8dabbf28d5319a43801c309c804cc3548c..f7fd48dde2ae835759be230e46ab75b49ec87c15 100644 (file)
--- a/ui.h
+++ b/ui.h
@@ -33,9 +33,23 @@ void         ui_print_database();
 void           ui_open_datafile();
 
 
-#include "options.h" /* needed for options_get_int */
+#include "options.h" /* needed for options_get_bool */
 
-#define UI_HLINE_CHAR          options_get_int("use_ascii_only") ? \
+#define UI_HLINE_CHAR          opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
                                        '-' : ACS_HLINE
+#define UI_TEE_CHAR            opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
+                                       '-' : ACS_BTEE
+#define UI_LBOXLINE_CHAR       opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
+                                       '/' : ACS_HLINE
+#define UI_RBOXLINE_CHAR       opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
+                                       '\\' : ACS_HLINE
+#define UI_ULCORNER_CHAR       opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
+                                       ' ' : ACS_ULCORNER
+#define UI_URCORNER_CHAR       opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
+                                       ' ' : ACS_URCORNER
+#define UI_LLCORNER_CHAR       opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
+                                       '+' : ACS_LLCORNER
+#define UI_LRCORNER_CHAR       opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
+                                       '+' : ACS_LRCORNER
 
 #endif