#endif
event_t mutt_getch (void);
-#ifndef waddnwstr
-int waddwch(WINDOW *win, wchar_t w);
-#else
#define waddwch(win, w) waddnwstr(win, &(w), 1)
-#endif
void curses_initialize(void);
void curses_install(void);
MT_COLOR_MAX
};
+/* flags for mutt_get_field() */
+#define M_ALIAS (1<<0) /* do alias "completion" by calling up the alias-menu */
+#define M_FILE (1<<1) /* do file completion */
+#define M_EFILE (1<<2) /* do file completion, plus incoming folders */
+#define M_CMD (1<<3) /* do completion on previous word */
+#define M_PASS (1<<4) /* password mode (no echo) */
+#define M_CLEAR (1<<5) /* clear input if printable character is pressed */
+#define M_COMMAND (1<<6) /* do command completion */
+#define M_PATTERN (1<<7) /* pattern mode - only used for history classes */
+#define M_LASTFOLDER (1<<8) /* last-folder mode - hack hack hack */
+
typedef struct color_line {
regex_t rx;
char *pattern;
void mutt_format_s_tree (char *, ssize_t, const char *, const char *);
void mutt_free_color (int fg, int bg);
void mutt_paddstr(WINDOW *, int, const char *);
-#define mutt_perror(a) _mutt_perror (a, __FILE__, __LINE__)
-void _mutt_perror (const char*, const char*,int);
+#define mutt_perror(s) \
+ mutt_error("%s: %m (errno = %d) from %s:%i", s, errno, __FILE__, __LINE__)
void mutt_query_exit (void);
void mutt_query_menu (char *, ssize_t);
void mutt_show_error (void);
ssize_t mutt_pretty_size(char *s, ssize_t len, ssize_t n);
-int mutt_alloc_color (int fg, int bg);
int mutt_any_key_to_continue (const char *);
-void mutt_what_key (void);
int mutt_complete (char *, ssize_t);
#define mutt_enter_fname(A,B,C,D,E) _mutt_enter_fname(A,B,C,D,E,0,NULL,NULL)
int _mutt_enter_fname (const char *, char *, ssize_t, int *, int, int,
int mutt_multi_choice (const char *prompt, const char *letters);
int mutt_parse_color (BUFFER *, BUFFER *, unsigned long, BUFFER *);
int mutt_parse_uncolor (BUFFER *, BUFFER *, unsigned long, BUFFER *);
-int mutt_parse_mono (BUFFER *, BUFFER *, unsigned long, BUFFER *);
-int mutt_parse_unmono (BUFFER *, BUFFER *, unsigned long, BUFFER *);
int mutt_query_complete (char *, ssize_t);
int mutt_user_is_recipient (HEADER *);
int mutt_yesorno (const char *, int);