/*
* Copyright 1997 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#ifndef _CURSES_H
#define _CURSES_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef WINDOW
#include <stdio.h>
#include <sgtty.h>
#if !(defined(__cplusplus) && defined(_BOOL))
#define bool char
#endif
#define reg register
#define FALSE (0)
#define ERR (0)
/*
* Capabilities from termcap
*/
*LEFT_PARM, *RIGHT_PARM;
extern char PC;
/*
* From the tty modes...
*/
struct _win_st {
short _flags;
short _ch_off;
bool _clear;
bool _leave;
bool _scroll;
char **_y;
short *_firstch;
short *_lastch;
};
#define VOID(x) (x)
/*
* pseudo functions for standard screen
*/
/*
* mv functions
*/
/*
* pseudo functions
*/
/*
* chtype is the type used to store a character together with attributes.
* It can be set to "char" to save space, or "int" to get more attributes.
*/
#ifdef CHTYPE
#else
typedef unsigned int chtype;
#endif
#ifndef __STDC__
#else
extern char *longname(char *, char *);
extern char *getcap(char *);
extern int gettmode(void);
extern int mvcur(int, int, int, int);
extern int endwin(void);
extern int printw(char *, ...);
extern int mvprintw(int, int, char *, ...);
extern int scanw(char *, ...);
extern int mvscanw(int, int, char *, ...);
extern int setterm(char *);
#endif /* __STDC__ */
/*
* Used to be in unctrl.h.
*/
extern char *_unctrl[];
#endif
#ifdef __cplusplus
}
#endif
#endif /* _CURSES_H */