]> git.deb.at Git - pkg/abook.git/blobdiff - ui.h
editor update
[pkg/abook.git] / ui.h
diff --git a/ui.h b/ui.h
index fa20dd207744934de5d6f503db7d667a15d94eb0..e312abd1d294bf813c8aab76940e236c4aea0f4f 100644 (file)
--- a/ui.h
+++ b/ui.h
@@ -7,15 +7,16 @@ enum {
        HELP_MAIN,
        HELP_EDITOR
 };
-       
 
 int            is_ui_initialized();
+void           ui_init_curses();
 int            init_ui();
 void           close_ui();
 void           headerline(char *str);
 void            refresh_screen();
 void            statusline_msg(char *msg);
 char           *ask_filename(char *prompt, int flags);
+int            statusline_ask_boolean(char *msg, int def);
 void            clear_statusline();
 void           display_help(int help);
 void           statusline_addstr(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