1 /*
2 * Copyright 1997 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
5
6 /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
7 /* All Rights Reserved */
8
9 /*
10 * Copyright (c) 1980 Regents of the University of California.
11 * All rights reserved. The Berkeley software License Agreement
12 * specifies the terms and conditions for redistribution.
13 */
14
15 #ifndef _CURSES_H
16 #define _CURSES_H
17
18 #pragma ident "%Z%%M% %I% %E% SMI"
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 #ifndef WINDOW
25
26 #include <stdio.h>
27 #include <sgtty.h>
28
29 #undef HZ /* in case they've included <sys/param.h> */
30
31 #if !(defined(__cplusplus) && defined(_BOOL))
32 #define bool char
33 #endif
34
35 #define reg register
36
37 #define TRUE (1)
38 #define FALSE (0)
39 #define ERR (0)
40 #define OK (1)
41
42 #define _ENDLINE 001
43 #define _FULLWIN 002
44 #define _SCROLLWIN 004
45 #define _FLUSH 010
46 #define _FULLLINE 020
47 #define _IDLINE 040
48 #define _STANDOUT 0200
49 #define _NOCHANGE -1
50
51 #define _puts(s) tputs(s, 0, _putchar)
|
1 /*
2 * Copyright 1997 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
5
6 /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
7 /* All Rights Reserved */
8
9 /*
10 * Copyright (c) 1980 Regents of the University of California.
11 * All rights reserved. The Berkeley software License Agreement
12 * specifies the terms and conditions for redistribution.
13 */
14
15 #ifndef _CURSES_H
16 #define _CURSES_H
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
22 #ifndef WINDOW
23
24 #include <stdio.h>
25 #include <sgtty.h>
26
27 #undef HZ /* in case they've included <sys/param.h> */
28
29 #if !(defined(__cplusplus) && defined(bool))
30 #define bool char
31 #endif
32
33 #define reg register
34
35 #define TRUE (1)
36 #define FALSE (0)
37 #define ERR (0)
38 #define OK (1)
39
40 #define _ENDLINE 001
41 #define _FULLWIN 002
42 #define _SCROLLWIN 004
43 #define _FLUSH 010
44 #define _FULLLINE 020
45 #define _IDLINE 040
46 #define _STANDOUT 0200
47 #define _NOCHANGE -1
48
49 #define _puts(s) tputs(s, 0, _putchar)
|