void headerline(char *str);
void refresh_screen();
int statusline_msg(char *msg);
-char *ask_filename(char *prompt, int flags);
+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();
#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