Commit b6a041cb authored by Thomas Roessler's avatar Thomas Roessler

Introduce mutt_curses_message/mutt_nocurses_message. From Olaf Kirch.

parent 6919ae23
......@@ -264,7 +264,7 @@ void mutt_curses_error (const char *fmt, ...)
set_option (OPTMSGERR);
}
void mutt_message (const char *fmt, ...)
void mutt_curses_message (const char *fmt, ...)
{
va_list ap;
......
......@@ -17,6 +17,7 @@
*/
WHERE void (*mutt_error) (const char *, ...);
WHERE void (*mutt_message) (const char *, ...);
WHERE CONTEXT *Context;
......
......@@ -472,6 +472,7 @@ int main (int argc, char **argv)
setlocale (LC_CTYPE, "");
mutt_error = mutt_nocurses_error;
mutt_message = mutt_nocurses_error;
SRAND (time (NULL));
umask (077);
......@@ -610,6 +611,7 @@ int main (int argc, char **argv)
SETCOLOR (MT_COLOR_NORMAL);
clear ();
mutt_error = mutt_curses_error;
mutt_message = mutt_curses_message;
}
/* Create the Maildir directory if it doesn't exist. */
......
......@@ -155,6 +155,7 @@ void mutt_edit_content_type (HEADER *, BODY *);
void mutt_edit_file (const char *, const char *);
void mutt_edit_headers (const char *, const char *, HEADER *, char *, size_t);
void mutt_curses_error (const char *, ...);
void mutt_curses_message (const char *, ...);
void mutt_enter_command (void);
void mutt_expand_aliases_env (ENVELOPE *);
void mutt_expand_file_fmt (char *, size_t, const char *, const char *);
......@@ -181,7 +182,6 @@ void mutt_make_forward_subject (ENVELOPE *env, CONTEXT *ctx, HEADER *cur);
void mutt_make_help (char *, size_t, char *, int, int);
void mutt_make_misc_reply_headers (ENVELOPE *env, CONTEXT *ctx, HEADER *cur, ENVELOPE *curenv);
void mutt_make_post_indent (CONTEXT *ctx, HEADER *cur, FILE *out);
void mutt_message (const char *, ...);
void mutt_message_to_7bit (BODY *, FILE *);
void mutt_mktemp (char *);
void mutt_normalize_time (struct tm *);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment