do
{
- CLEARLINE (LINES-1);
+ mutt_window_clearline (MuttMessageWindow, 0);
SETCOLOR (MT_COLOR_PROMPT);
addstr ((char *)field); /* cast to get around bad prototypes */
NORMAL_COLOR;
ret = _mutt_enter_string (buf, buflen, y, x, complete, multiple, files, numfiles, es);
}
while (ret == 1);
- CLEARLINE (LINES-1);
+ mutt_window_clearline (MuttMessageWindow, 0);
mutt_free_enter_state (&es);
return (ret);
{
Errorbuf[0] = 0;
if (!option(OPTNOCURSES))
- CLEARLINE (LINES-1);
+ mutt_window_clearline (MuttMessageWindow, 0);
}
void mutt_edit_file (const char *editor, const char *data)
!REGCOMP (&reno, expr, REG_NOSUB);
#endif
- CLEARLINE(LINES-1);
+ mutt_window_clearline (MuttMessageWindow, 0);
/*
* In order to prevent the default answer to the question to wrapped
safe_asprintf (&answer_string, " ([%s]/%s): ", def == M_YES ? yes : no, def == M_YES ? no : yes);
answer_string_len = mutt_strwidth (answer_string);
/* maxlen here is sort of arbitrary, so pick a reasonable upper bound */
- msglen = mutt_wstr_trunc (msg, 4*COLS, COLS - answer_string_len, NULL);
+ msglen = mutt_wstr_trunc (msg, 4*MuttMessageWindow->cols, MuttMessageWindow->cols - answer_string_len, NULL);
SETCOLOR (MT_COLOR_PROMPT);
addnstr (msg, msglen);
addstr (answer_string);
dprint (1, (debugfile, "%s\n", scratch));
mutt_format_string (Errorbuf, sizeof (Errorbuf),
- 0, COLS, FMT_LEFT, 0, scratch, sizeof (scratch), 0);
+ 0, MuttMessageWindow->cols, FMT_LEFT, 0, scratch, sizeof (scratch), 0);
if (!option (OPTKEEPQUIET))
{
if (error)
BEEP ();
SETCOLOR (error ? MT_COLOR_ERROR : MT_COLOR_MESSAGE);
- mvaddstr (LINES-1, 0, Errorbuf);
+ mutt_window_mvaddstr (MuttMessageWindow, 0, 0, Errorbuf);
NORMAL_COLOR;
- clrtoeol ();
+ mutt_window_clrtoeol (MuttMessageWindow);
mutt_refresh ();
}
return;
SETCOLOR (option (OPTMSGERR) ? MT_COLOR_ERROR : MT_COLOR_MESSAGE);
- mvaddstr(LINES-1, 0, Errorbuf);
+ mutt_window_mvaddstr (MuttMessageWindow, 0, 0, Errorbuf);
NORMAL_COLOR;
- clrtoeol();
+ mutt_window_clrtoeol(MuttMessageWindow);
}
void mutt_endwin (const char *msg)
event_t ch;
SETCOLOR (MT_COLOR_PROMPT);
- mvaddstr (LINES-1, 0, (char *) prompt);
+ mutt_window_mvaddstr (MuttMessageWindow, 0, 0, (char *) prompt);
addstr (_(" ('?' for list): "));
NORMAL_COLOR;
if (buf[0])
addstr (buf);
- clrtoeol ();
+ mutt_window_clrtoeol (MuttMessageWindow);
mutt_refresh ();
ch = mutt_getch();
if (ch.ch < 0)
{
- CLEARLINE (LINES-1);
+ mutt_window_clearline (MuttMessageWindow, 0);
return (-1);
}
else if (ch.ch == '?')
char *p;
SETCOLOR (MT_COLOR_PROMPT);
- mvaddstr (LINES - 1, 0, prompt);
+ mutt_window_mvaddstr (MuttMessageWindow, 0, 0, prompt);
NORMAL_COLOR;
- clrtoeol ();
+ mutt_window_clrtoeol (MuttMessageWindow);
FOREVER
{
mutt_refresh ();
}
BEEP ();
}
- CLEARLINE (LINES - 1);
+ mutt_window_clearline (MuttMessageWindow, 0);
mutt_refresh ();
return choice;
}