10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22 /*
23 * Copyright 1996-2003 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27 #ifndef _CURSES_H
28 #define _CURSES_H
29
30 #pragma ident "%Z%%M% %I% %E% SMI"
31
32 /*
33 * curses.h
34 *
35 * XCurses Library
36 *
37 * Copyright 1990, 1995 by Mortice Kern Systems Inc. All rights reserved.
38 *
39 */
40
41 #include <sys/isa_defs.h>
42 #include <stdio.h>
43 #include <term.h>
44 #include <wchar.h>
45
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49
50 #define _XOPEN_CURSES
51
52 #ifndef EOF
53 #define EOF (-1)
54 #endif
55
56 #ifndef WEOF
57 #define WEOF ((wint_t)(-1))
58 #endif
59
60 #define ERR EOF
61 #define OK 0
62
63 #if !(defined(__cplusplus) && defined(_BOOL))
64 #ifndef _BOOL_DEFINED
65 typedef short bool;
66 #define _BOOL_DEFINED
67 #endif
68 #endif
69
70 #define TRUE 1
71 #define FALSE 0
72
73 typedef unsigned short attr_t;
74
75 /*
76 * These attributes and masks can be applied to an attr_t.
77 * These are ordered according to the <no_color_video> mask,
78 * which has been extended to include additional attributes.
79 */
80 #define WA_NORMAL 0x0
81 #define WA_STANDOUT 0x0001
82 #define WA_UNDERLINE 0x0002
83 #define WA_REVERSE 0x0004
|
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22 /*
23 * Copyright 1996-2003 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27 #ifndef _CURSES_H
28 #define _CURSES_H
29
30 /*
31 * curses.h
32 *
33 * XCurses Library
34 *
35 * Copyright 1990, 1995 by Mortice Kern Systems Inc. All rights reserved.
36 *
37 */
38
39 #include <sys/isa_defs.h>
40 #include <stdio.h>
41 #include <term.h>
42 #include <wchar.h>
43
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47
48 #define _XOPEN_CURSES
49
50 #ifndef EOF
51 #define EOF (-1)
52 #endif
53
54 #ifndef WEOF
55 #define WEOF ((wint_t)(-1))
56 #endif
57
58 #define ERR EOF
59 #define OK 0
60
61 #if !(defined(__cplusplus) && defined(bool))
62 #ifndef _BOOL_DEFINED
63 typedef short bool;
64 #define _BOOL_DEFINED
65 #endif
66 #endif
67
68 #define TRUE 1
69 #define FALSE 0
70
71 typedef unsigned short attr_t;
72
73 /*
74 * These attributes and masks can be applied to an attr_t.
75 * These are ordered according to the <no_color_video> mask,
76 * which has been extended to include additional attributes.
77 */
78 #define WA_NORMAL 0x0
79 #define WA_STANDOUT 0x0001
80 #define WA_UNDERLINE 0x0002
81 #define WA_REVERSE 0x0004
|