]> git.deb.at Git - pkg/abook.git/blobdiff - ui.h
Imported Upstream version 0.5.3
[pkg/abook.git] / ui.h
diff --git a/ui.h b/ui.h
index 5c3cac187ce9e01eb0b57fa371e3245c635e997e..fdb4dcaeb1d8f9eb5ec0ab554a7bcca393fe580f 100644 (file)
--- a/ui.h
+++ b/ui.h
@@ -14,13 +14,13 @@ 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_msg(char *msg);
+char           *ask_filename(char *prompt);
 int            statusline_ask_boolean(char *msg, int def);
 void            clear_statusline();
 void           display_help(int help);
 void           statusline_addstr(char *str);
-char           *statusline_getnstr(char *str, int n, int use_filesel);
+char *         ui_readline(char *prompt, char *s, int limit, bool use_completion);
 void           refresh_statusline();
 void           get_commands();
 void           ui_remove_items();
@@ -35,7 +35,21 @@ void         ui_open_datafile();
 
 #include "options.h" /* needed for options_get_int */
 
-#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