X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=ui.h;h=ba6518f1e6da240fd623c9e40495a7b41ca8a452;hb=4b8f9231090ada43f7e16987ec46ac7f45a914ec;hp=5cdd87357412ee2b2c9bb7151b6ecdc65359ed9c;hpb=c38bc4bc5254bd5925d8567e7ff1554a7844b8c7;p=pkg%2Fabook.git diff --git a/ui.h b/ui.h index 5cdd873..ba6518f 100644 --- a/ui.h +++ b/ui.h @@ -12,14 +12,14 @@ int is_ui_initialized(); void ui_init_curses(); int init_ui(); void close_ui(); -void headerline(char *str); +void headerline(const char *str); void refresh_screen(); -int statusline_msg(char *msg); +int statusline_msg(const 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); +void statusline_addstr(const char *str); char * ui_readline(char *prompt, char *s, int limit, bool use_completion); void refresh_statusline(); void get_commands(); @@ -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 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