X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=mutt_curses.h;h=1575bbf419a7517881c302346136c13715ff101e;hb=df70e07e24add1869bcc9b7af2277d9d0c09a281;hp=b7b1a828950e35a3cf330b7de3f93ad14b5447a5;hpb=6833ce8bdca2d64e14485118f2a4417b7e1cb1b1;p=apps%2Fmadmutt.git diff --git a/mutt_curses.h b/mutt_curses.h index b7b1a82..1575bbf 100644 --- a/mutt_curses.h +++ b/mutt_curses.h @@ -1,5 +1,6 @@ /* * Copyright (C) 1996-2000 Michael R. Elkins + * Copyright (C) 2004 g10 Code GmbH * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -14,11 +15,11 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. - */ + */ #ifdef USE_SLANG_CURSES -#ifndef unix /* this symbol is not defined by the hp-ux compiler (sigh) */ +#ifndef unix /* this symbol is not defined by the hp-ux compiler (sigh) */ #define unix #endif /* unix */ @@ -58,6 +59,7 @@ #undef lines #endif /* lines */ +#define CLEARLINE_WIN(x) move(x,SidebarWidth), clrtoeol() #define CLEARLINE(x) move(x,0), clrtoeol() #define CENTERLINE(x,y) move(y, (COLS-strlen(x))/2), addstr(x) #define BEEP() do { if (option (OPTBEEP)) beep(); } while (0) @@ -94,13 +96,13 @@ void mutt_flushinp (void); void mutt_refresh (void); void mutt_resize_screen (void); void mutt_ungetch (int, int); +void mutt_need_hard_redraw (void); /* ---------------------------------------------------------------------------- * Support for color */ -enum -{ +enum { MT_COLOR_HDEFAULT = 0, MT_COLOR_QUOTED, MT_COLOR_SIGNATURE, @@ -117,17 +119,19 @@ enum MT_COLOR_ATTACHMENT, MT_COLOR_SEARCH, MT_COLOR_BOLD, + MT_COLOR_SIDEBAR, MT_COLOR_UNDERLINE, MT_COLOR_INDEX, + MT_COLOR_NEW, + MT_COLOR_FLAGGED, MT_COLOR_MAX }; -typedef struct color_line -{ +typedef struct color_line { regex_t rx; char *pattern; - pattern_t *color_pattern; /* compiled pattern to speed up index color - calculation */ + pattern_t *color_pattern; /* compiled pattern to speed up index color + calculation */ short fg; short bg; int pair; @@ -154,21 +158,21 @@ void ci_start_color (void); */ #if !defined(STDC_HEADERS) && !defined(NCURSES_VERSION) && !defined(USE_SLANG_CURSES) -extern int endwin(); -extern int printw(); -extern int beep(); -extern int isendwin(); -extern int w32addch(); -extern int keypad(); -extern int wclrtobot(); -extern int mvprintw(); -extern int getcurx(); -extern int getcury(); -extern int noecho(); -extern int wdelch(); -extern int wrefresh(); -extern int wmove(); -extern int wclear(); -extern int waddstr(); -extern int wclrtoeol(); +extern int endwin (); +extern int printw (); +extern int beep (); +extern int isendwin (); +extern int w32addch (); +extern int keypad (); +extern int wclrtobot (); +extern int mvprintw (); +extern int getcurx (); +extern int getcury (); +extern int noecho (); +extern int wdelch (); +extern int wrefresh (); +extern int wmove (); +extern int wclear (); +extern int waddstr (); +extern int wclrtoeol (); #endif