diff options
author | ache <ache@FreeBSD.org> | 1997-07-30 17:21:39 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-07-30 17:21:39 +0000 |
commit | d6cf2089bc5887f137a83ede9767e5154e3b8186 (patch) | |
tree | 2eda095cc49ccd84c07771c2714cb72c8d3a931c /lib/libncurses/curses.priv.h | |
parent | 2d46d6b6b7899598c975cea266468603c9a442ba (diff) | |
download | FreeBSD-src-d6cf2089bc5887f137a83ede9767e5154e3b8186.zip FreeBSD-src-d6cf2089bc5887f137a83ede9767e5154e3b8186.tar.gz |
Fix logical background handling by merging it from ncurses 4.1
No new user-visible functions added
Diffstat (limited to 'lib/libncurses/curses.priv.h')
-rw-r--r-- | lib/libncurses/curses.priv.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/libncurses/curses.priv.h b/lib/libncurses/curses.priv.h index 42952ce..794781e 100644 --- a/lib/libncurses/curses.priv.h +++ b/lib/libncurses/curses.priv.h @@ -32,8 +32,21 @@ typedef struct sigaction sigaction_t; #define FG(n) ((n) & 0x0f) #define BG(n) (((n) & 0xf0) >> 4) +#define TextOf(c) ((c) & (chtype)A_CHARTEXT) +#define AttrOf(c) ((c) & (chtype)A_ATTRIBUTES) + +#define BLANK (' '|A_NORMAL) + #define CHANGED -1 +#define ALL_BUT_COLOR ((chtype)~(A_COLOR)) + +/* Macro to put together character and attribute info and return it. + If colors are in the attribute, they have precedence. */ +#define ch_or_attr(ch,at) \ + ((PAIR_NUMBER(at) > 0) ? \ + ((((chtype)ch) & ALL_BUT_COLOR) | (at)) : ((((chtype)ch) | (at)))) + extern WINDOW *newscr; #ifdef TRACE @@ -51,6 +64,8 @@ extern void init_acs(void); extern void tstp(int); extern WINDOW *makenew(int, int, int, int); extern int timed_wait(int fd, int wait, int *timeleft); +extern chtype _nc_background(WINDOW *); +extern chtype _nc_render(WINDOW *, chtype); struct try { struct try *child; /* ptr to child. NULL if none */ |