X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-ui%2Fcurses.h;fp=lib-ui%2Fcurses.h;h=f438395000b5bbb1674445cad309ba7680654135;hp=c639c869137872694b1c749a2942f09a17575192;hb=8e39affbf1cd8a2a5ff5c9991650d54fdcea4997;hpb=43ff595b82123a6f606b4ae6d0c27968f5916386 diff --git a/lib-ui/curses.h b/lib-ui/curses.h index c639c86..f438395 100644 --- a/lib-ui/curses.h +++ b/lib-ui/curses.h @@ -30,12 +30,12 @@ #undef lines #endif /* lines */ -#define CLEARLINE_WIN(x) move(x,(option(OPTMBOXPANE)?SidebarWidth:0)), clrtoeol() -#define CLEARLINE(x) move(x,0), clrtoeol() -#define CENTERLINE(x,y) move(y, (COLS-strlen(x))/2), addstr(x) +#define CLEARLINE_WIN(x) wmove(stdscr, x,(option(OPTMBOXPANE)?SidebarWidth:0)), wclrtoeol(stdscr) +#define CLEARLINE(x) wmove(stdscr, x,0), wclrtoeol(stdscr) +#define CENTERLINE(x,y) wmove(stdscr, y, (COLS-strlen(x))/2), waddstr(stdscr, x) #define BEEP() do { if (mod_core.beep) beep(); } while (0) -#define BKGDSET(x) bkgdset(ColorDefs[x] | ' ') +#define BKGDSET(x) wbkgdset(stdscr, ColorDefs[x] | ' ') void mutt_curs_set (int); #define PAGELEN (LINES-3) @@ -163,8 +163,8 @@ void _mutt_make_string (char *, ssize_t, const char *, CONTEXT *, HEADER *, format_flag); -#define SETCOLOR(X) attrset(ColorDefs[X]) -#define ADDCOLOR(X) attron(ColorDefs[X]) +#define SETCOLOR(X) wattrset(stdscr, ColorDefs[X]) +#define ADDCOLOR(X) wattron(stdscr, ColorDefs[X]) #define MAYBE_REDRAW(x) if (option (OPTNEEDREDRAW)) { unset_option (OPTNEEDREDRAW); x = REDRAW_FULL; }