summaryrefslogtreecommitdiff
path: root/lib/libncurses/curses.priv.h
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-07-30 17:21:39 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-07-30 17:21:39 +0000
commitc8a57a4fe56f3245fcb57b55188c8a336340b078 (patch)
tree7f7f89b59e18742d35d82f795df7418c5e33545e /lib/libncurses/curses.priv.h
parented29ca4685d39742de8539c10654fb23eb026e6a (diff)
Notes
Diffstat (limited to 'lib/libncurses/curses.priv.h')
-rw-r--r--lib/libncurses/curses.priv.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/libncurses/curses.priv.h b/lib/libncurses/curses.priv.h
index 42952ce68669..794781e2856c 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 */