Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses Add __TERMATTR definition. This makes the cod...
details: https://anonhg.NetBSD.org/src/rev/4a3883a011b9
branches: trunk
changeset: 485090:4a3883a011b9
user: jdc <jdc%NetBSD.org@localhost>
date: Tue Apr 18 22:43:25 2000 +0000
description:
Add __TERMATTR definition. This makes the code in refresh.c much easier to
follow.
Add background character and attributes to line data.
diffstat:
lib/libcurses/curses_private.h | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r af1c2ac8d480 -r 4a3883a011b9 lib/libcurses/curses_private.h
--- a/lib/libcurses/curses_private.h Tue Apr 18 22:15:55 2000 +0000
+++ b/lib/libcurses/curses_private.h Tue Apr 18 22:43:25 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: curses_private.h,v 1.4 2000/04/15 13:17:03 blymn Exp $ */
+/* $NetBSD: curses_private.h,v 1.5 2000/04/18 22:43:25 jdc Exp $ */
/*-
* Copyright (c) 1998-2000 Brett Lymn
@@ -44,6 +44,8 @@
struct __ldata {
wchar_t ch; /* Character */
attr_t attr; /* Attributes */
+ wchar_t bch; /* Background character */
+ attr_t battr; /* Background attributes */
};
#define __LDATASIZE (sizeof(__LDATA))
@@ -82,10 +84,14 @@
unsigned int flags;
int delay; /* delay for getch() */
attr_t wattr; /* Character attributes */
- wchar_t bchar; /* Background character */
+ wchar_t bch; /* Background character */
attr_t battr; /* Background attributes */
};
+/* Set of attributes unset by 'me' - 'mb', 'md', 'mh', 'mk', 'mp' and 'mr'. */
+#define __TERMATTR \
+ (__REVERSE | __BLINK | __DIM | __BOLD | __BLANK | __PROTECT)
+
struct __winlist {
struct __window *winp; /* The window. */
struct __winlist *nextp; /* Next window. */
Home |
Main Index |
Thread Index |
Old Index