Encapsulate a curses function to reduce dependencies.
mutt_curses_set_color(MT_COLOR_NORMAL);
/* clear() doesn't optimize screen redraws */
move(0, 0);
- clrtobot();
+ mutt_window_clrtobot();
if (C_Help)
{
{
CurrentMenu = MENU_MAIN;
move(0, 0);
- clrtobot();
+ mutt_window_clrtobot();
}
}
mutt_window_clrtoeol(win);
}
+/**
+ * mutt_window_clrtobot - Clear to the bottom of the Window
+ *
+ * @note Assumes the cursor has already been positioned within the Window.
+ */
+void mutt_window_clrtobot(void)
+{
+ clrtobot();
+}
+
/**
* mutt_window_clrtoeol - Clear to the end of the line
* @param win Window
int mutt_window_addnstr (const char *str, int num);
int mutt_window_addstr (const char *str);
void mutt_window_clearline(struct MuttWindow *win, int row);
+void mutt_window_clrtobot (void);
void mutt_window_clrtoeol (struct MuttWindow *win);
int mutt_window_move (struct MuttWindow *win, int row, int col);
int mutt_window_mvaddstr (struct MuttWindow *win, int row, int col, const char *str);
mutt_curses_set_color(MT_COLOR_NORMAL);
/* clear() doesn't optimize screen redraws */
move(0, 0);
- clrtobot();
+ mutt_window_clrtobot();
if (IsEmail(rd->extra) && Context && ((Context->mailbox->vcount + 1) < C_PagerIndexLines))
rd->indexlen = Context->mailbox->vcount + 1;