Home | History | Annotate | Line # | Download | only in libcurses
curses.h revision 1.62
      1  1.62     blymn /*	$NetBSD: curses.h,v 1.62 2001/12/02 09:14:21 blymn Exp $	*/
      2  1.18     mikel 
      3   1.1       cgd /*
      4  1.13       cgd  * Copyright (c) 1981, 1993, 1994
      5   1.7       cgd  *	The Regents of the University of California.  All rights reserved.
      6   1.1       cgd  *
      7   1.1       cgd  * Redistribution and use in source and binary forms, with or without
      8   1.1       cgd  * modification, are permitted provided that the following conditions
      9   1.1       cgd  * are met:
     10   1.1       cgd  * 1. Redistributions of source code must retain the above copyright
     11   1.1       cgd  *    notice, this list of conditions and the following disclaimer.
     12   1.1       cgd  * 2. Redistributions in binary form must reproduce the above copyright
     13   1.1       cgd  *    notice, this list of conditions and the following disclaimer in the
     14   1.1       cgd  *    documentation and/or other materials provided with the distribution.
     15   1.1       cgd  * 3. All advertising materials mentioning features or use of this software
     16   1.1       cgd  *    must display the following acknowledgement:
     17   1.1       cgd  *	This product includes software developed by the University of
     18   1.1       cgd  *	California, Berkeley and its contributors.
     19   1.1       cgd  * 4. Neither the name of the University nor the names of its contributors
     20   1.1       cgd  *    may be used to endorse or promote products derived from this software
     21   1.1       cgd  *    without specific prior written permission.
     22   1.1       cgd  *
     23   1.1       cgd  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     24   1.1       cgd  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     25   1.1       cgd  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     26   1.1       cgd  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     27   1.1       cgd  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     28   1.1       cgd  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     29   1.1       cgd  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     30   1.1       cgd  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     31   1.1       cgd  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     32   1.1       cgd  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     33   1.1       cgd  * SUCH DAMAGE.
     34   1.1       cgd  *
     35  1.21     perry  *	@(#)curses.h	8.5 (Berkeley) 4/29/95
     36   1.1       cgd  */
     37   1.1       cgd 
     38   1.4   mycroft #ifndef _CURSES_H_
     39   1.4   mycroft #define	_CURSES_H_
     40   1.1       cgd 
     41  1.22       mrg #include <sys/types.h>
     42  1.22       mrg #include <sys/cdefs.h>
     43  1.30     blymn #include <wchar.h>
     44  1.22       mrg 
     45   1.4   mycroft #include <stdio.h>
     46  1.20     lukem #include <termcap.h>
     47   1.1       cgd 
     48   1.4   mycroft /*
     49  1.31       jdc  * attr_t must be the same size as wchar_t (see <wchar.h>) to avoid padding
     50  1.31       jdc  * in __LDATA.
     51   1.4   mycroft  */
     52  1.30     blymn typedef wchar_t	chtype;
     53  1.30     blymn typedef wchar_t	attr_t;
     54  1.44       jdc 
     55  1.44       jdc /* C++ already defines bool. */
     56  1.44       jdc #ifndef __cplusplus
     57  1.30     blymn typedef	char	bool;
     58  1.44       jdc #endif
     59   1.1       cgd 
     60   1.4   mycroft #ifndef TRUE
     61  1.22       mrg #define	TRUE	(/*CONSTCOND*/1)
     62   1.4   mycroft #endif
     63   1.4   mycroft #ifndef FALSE
     64  1.22       mrg #define	FALSE	(/*CONSTCOND*/0)
     65   1.4   mycroft #endif
     66   1.1       cgd 
     67  1.30     blymn /*
     68  1.30     blymn  * The following #defines and #includes are present for backward
     69  1.30     blymn  * compatibility only.  They should not be used in future code.
     70  1.30     blymn  *
     71  1.30     blymn  * START BACKWARD COMPATIBILITY ONLY.
     72  1.30     blymn  */
     73  1.30     blymn #ifndef _CURSES_PRIVATE
     74  1.30     blymn 
     75   1.4   mycroft #define	_puts(s)	tputs(s, 0, __cputchar)
     76   1.4   mycroft #define	_putchar(c)	__cputchar(c)
     77   1.1       cgd 
     78   1.4   mycroft /* Old-style terminal modes access. */
     79   1.7       cgd #define	baudrate()	(cfgetospeed(&__baset))
     80   1.4   mycroft #define	crmode()	cbreak()
     81   1.4   mycroft #define	nocrmode()	nocbreak()
     82   1.7       cgd #define	ospeed		(cfgetospeed(&__baset))
     83   1.4   mycroft #endif /* _CURSES_PRIVATE */
     84  1.50       jdc 
     85  1.50       jdc /* Termcap capabilities. */
     86  1.51       jdc extern char	__tc_am, __tc_bs, __tc_cc, __tc_da, __tc_eo,
     87  1.51       jdc 		__tc_hc, __tc_hl, __tc_in, __tc_mi, __tc_ms,
     88  1.51       jdc 		__tc_nc, __tc_ns, __tc_os, __tc_ul, __tc_ut,
     89  1.51       jdc 		__tc_xb, __tc_xn, __tc_xt, __tc_xs, __tc_xx;
     90  1.51       jdc extern char	__CA;
     91  1.51       jdc extern int	__tc_pa, __tc_Co, __tc_NC;
     92  1.51       jdc extern char	*__tc_ac, *__tc_AB, *__tc_ae, *__tc_AF, *__tc_AL,
     93  1.51       jdc 		*__tc_al, *__tc_as, *__tc_bc, *__tc_bl, *__tc_bt,
     94  1.51       jdc 		*__tc_cd, *__tc_ce, *__tc_cl, *__tc_cm, *__tc_cr,
     95  1.51       jdc 		*__tc_cs, *__tc_dc, *__tc_DL, *__tc_dl, *__tc_dm,
     96  1.51       jdc 		*__tc_DO, *__tc_do, *__tc_eA, *__tc_ed, *__tc_ei,
     97  1.51       jdc 		*__tc_ho, *__tc_Ic, *__tc_ic, *__tc_im, *__tc_Ip,
     98  1.51       jdc 		*__tc_ip, *__tc_k0, *__tc_k1, *__tc_k2, *__tc_k3,
     99  1.51       jdc 		*__tc_k4, *__tc_k5, *__tc_k6, *__tc_k7, *__tc_k8,
    100  1.51       jdc 		*__tc_k9, *__tc_kd, *__tc_ke, *__tc_kh, *__tc_kl,
    101  1.51       jdc 		*__tc_kr, *__tc_ks, *__tc_ku, *__tc_LE, *__tc_ll,
    102  1.51       jdc 		*__tc_ma, *__tc_mb, *__tc_md, *__tc_me, *__tc_mh,
    103  1.51       jdc 		*__tc_mk, *__tc_mm, *__tc_mo, *__tc_mp, *__tc_mr,
    104  1.51       jdc 		*__tc_nd, *__tc_nl, *__tc_oc, *__tc_op,
    105  1.51       jdc 		*__tc_rc, *__tc_RI, *__tc_Sb, *__tc_sc, *__tc_se,
    106  1.51       jdc 		*__tc_SF, *__tc_Sf, *__tc_sf, *__tc_so, *__tc_sp,
    107  1.51       jdc 		*__tc_SR, *__tc_sr, *__tc_ta, *__tc_te, *__tc_ti,
    108  1.51       jdc 		*__tc_uc, *__tc_ue, *__tc_UP, *__tc_up, *__tc_us,
    109  1.51       jdc 		*__tc_vb, *__tc_ve, *__tc_vi, *__tc_vs;
    110  1.51       jdc 
    111  1.51       jdc #ifdef _CURSES_TERMCAP_COMPAT
    112  1.51       jdc #define	AM		__tc_am
    113  1.51       jdc #define	BS		__tc_bs
    114  1.51       jdc #define	CA		__tc_cc
    115  1.51       jdc #define	DA		__tc_da
    116  1.51       jdc #define	EO		__tc_eo
    117  1.51       jdc #define	HC		__tc_hc
    118  1.51       jdc #define	IN		__tc_in
    119  1.51       jdc #define	MI		__tc_mi
    120  1.51       jdc #define	MS		__tc_ms
    121  1.51       jdc #define	NC		__tc_nc
    122  1.51       jdc #define	NS		__tc_ns
    123  1.51       jdc #define	OS		__tc_os
    124  1.51       jdc #define	UL		__tc_ul
    125  1.51       jdc #define	XB		__tc_xb
    126  1.51       jdc #define	XN		__tc_xn
    127  1.51       jdc #define	XT		__tc_xt
    128  1.51       jdc #define	XS		__tc_xs
    129  1.51       jdc #define	XX		__tc_xx
    130  1.51       jdc #define	AL		__tc_AL
    131  1.51       jdc #define	BC		__tc_bc
    132  1.51       jdc #define	BT		__tc_bt
    133  1.51       jdc #define	CD		__tc_cd
    134  1.51       jdc #define	CE		__tc_ce
    135  1.51       jdc #define	CL		__tc_cl
    136  1.51       jdc #define	CM		__tc_cm
    137  1.51       jdc #define	CR		__tc_cr
    138  1.51       jdc #define	CS		__tc_cs
    139  1.51       jdc #define	DC		__tc_dc
    140  1.51       jdc #define	DL		__tc_DL
    141  1.51       jdc #define	DM		__tc_dm
    142  1.51       jdc #define	DO		__tc_do
    143  1.51       jdc #define	ED		__tc_ed
    144  1.51       jdc #define	EI		__tc_ei
    145  1.51       jdc #define	K0		__tc_k0
    146  1.51       jdc #define	K1		__tc_k1
    147  1.51       jdc #define	K2		__tc_k2
    148  1.51       jdc #define	K3		__tc_k3
    149  1.51       jdc #define	K4		__tc_k4
    150  1.51       jdc #define	K5		__tc_k5
    151  1.51       jdc #define	K6		__tc_k6
    152  1.51       jdc #define	K7		__tc_k7
    153  1.51       jdc #define	K8		__tc_k8
    154  1.51       jdc #define	K9		__tc_k9
    155  1.51       jdc #define	HO		__tc_ho
    156  1.51       jdc #define	IC		__tc_ic
    157  1.51       jdc #define	IM		__tc_im
    158  1.51       jdc #define	IP		__tc_ip
    159  1.51       jdc #define	KD		__tc_kd
    160  1.51       jdc #define	KE		__tc_ke
    161  1.51       jdc #define	KH		__tc_kh
    162  1.51       jdc #define	KL		__tc_kl
    163  1.51       jdc #define	KR		__tc_kr
    164  1.51       jdc #define	KS		__tc_ks
    165  1.51       jdc #define	KU		__tc_ku
    166  1.51       jdc #define	LL		__tc_ll
    167  1.51       jdc #define	MA		__tc_ma
    168  1.51       jdc #define	ND		__tc_nd
    169  1.51       jdc #define	NL		__tc_nl
    170  1.51       jdc #define	RC		__tc_rc
    171  1.51       jdc #define	SC		__tc_sc
    172  1.51       jdc #define	SE		__tc_se
    173  1.51       jdc #define	SF		__tc_SF
    174  1.51       jdc #define	SO		__tc_so
    175  1.51       jdc #define	SR		__tc_SR
    176  1.51       jdc #define	TA		__tc_ta
    177  1.51       jdc #define	TE		__tc_te
    178  1.51       jdc #define	TI		__tc_ti
    179  1.51       jdc #define	UC		__tc_uc
    180  1.51       jdc #define	UE		__tc_ue
    181  1.51       jdc #define	UP		__tc_up
    182  1.51       jdc #define	US		__tc_us
    183  1.51       jdc #define	VB		__tc_vb
    184  1.51       jdc #define	VS		__tc_vs
    185  1.51       jdc #define	VE		__tc_ve
    186  1.51       jdc #define	al		__tc_al
    187  1.51       jdc #define	dl		__tc_dl
    188  1.51       jdc #define	sf		__tc_sf
    189  1.51       jdc #define	sr		__tc_sr
    190  1.51       jdc #define	AL_PARM		__tc_AL
    191  1.51       jdc #define	DL_PARM		__tc_DL
    192  1.51       jdc #define	UP_PARM		__tc_UP
    193  1.51       jdc #define	DOWN_PARM	__tc_DO
    194  1.51       jdc #define	LEFT_PARM	__tc_LE
    195  1.51       jdc #define	RIGHT_PARM	__tc_RI
    196  1.51       jdc #endif /* _CURSES_TERMCAP_COMPAT */
    197  1.51       jdc 
    198   1.7       cgd /* END BACKWARD COMPATIBILITY ONLY. */
    199   1.7       cgd 
    200  1.22       mrg /* symbols for values returned by getch in keypad mode */
    201  1.22       mrg #define    KEY_MIN        0x101    /* minimum extended key value */
    202  1.22       mrg #define    KEY_BREAK      0x101    /* break key */
    203  1.22       mrg #define    KEY_DOWN       0x102    /* down arrow */
    204  1.22       mrg #define    KEY_UP         0x103    /* up arrow */
    205  1.22       mrg #define    KEY_LEFT       0x104    /* left arrow */
    206  1.22       mrg #define    KEY_RIGHT      0x105    /* right arrow*/
    207  1.22       mrg #define    KEY_HOME       0x106    /* home key */
    208  1.22       mrg #define    KEY_BACKSPACE  0x107    /* Backspace */
    209  1.22       mrg 
    210  1.22       mrg /* First function key (block of 64 follow) */
    211  1.24    simonb #define    KEY_F0         0x108
    212  1.22       mrg /* Function defining other function key values*/
    213  1.24    simonb #define    KEY_F(n)       (KEY_F0+(n))
    214  1.22       mrg 
    215  1.22       mrg #define    KEY_DL         0x148    /* Delete Line */
    216  1.22       mrg #define    KEY_IL         0x149    /* Insert Line*/
    217  1.22       mrg #define    KEY_DC         0x14A    /* Delete Character */
    218  1.22       mrg #define    KEY_IC         0x14B    /* Insert Character */
    219  1.22       mrg #define    KEY_EIC        0x14C    /* Exit Insert Char mode */
    220  1.22       mrg #define    KEY_CLEAR      0x14D    /* Clear screen */
    221  1.22       mrg #define    KEY_EOS        0x14E    /* Clear to end of screen */
    222  1.22       mrg #define    KEY_EOL        0x14F    /* Clear to end of line */
    223  1.22       mrg #define    KEY_SF         0x150    /* Scroll one line forward */
    224  1.22       mrg #define    KEY_SR         0x151    /* Scroll one line back */
    225  1.22       mrg #define    KEY_NPAGE      0x152    /* Next Page */
    226  1.22       mrg #define    KEY_PPAGE      0x153    /* Prev Page */
    227  1.22       mrg #define    KEY_STAB       0x154    /* Set Tab */
    228  1.22       mrg #define    KEY_CTAB       0x155    /* Clear Tab */
    229  1.22       mrg #define    KEY_CATAB      0x156    /* Clear All Tabs */
    230  1.22       mrg #define    KEY_ENTER      0x157    /* Enter or Send */
    231  1.22       mrg #define    KEY_SRESET     0x158    /* Soft Reset */
    232  1.22       mrg #define    KEY_RESET      0x159    /* Hard Reset */
    233  1.22       mrg #define    KEY_PRINT      0x15A    /* Print */
    234  1.22       mrg #define    KEY_LL         0x15B    /* Home Down */
    235  1.22       mrg 
    236  1.22       mrg /*
    237  1.22       mrg  * "Keypad" keys arranged like this:
    238  1.22       mrg  *
    239  1.22       mrg  *  A1   up  A3
    240  1.22       mrg  * left  B2 right
    241  1.22       mrg  *  C1  down C3
    242  1.22       mrg  *
    243  1.22       mrg  */
    244  1.22       mrg #define    KEY_A1         0x15C    /* Keypad upper left */
    245  1.22       mrg #define    KEY_A3         0x15D    /* Keypad upper right */
    246  1.22       mrg #define    KEY_B2         0x15E    /* Keypad centre key */
    247  1.22       mrg #define    KEY_C1         0x15F    /* Keypad lower left */
    248  1.22       mrg #define    KEY_C3         0x160    /* Keypad lower right */
    249  1.22       mrg 
    250  1.22       mrg #define    KEY_BTAB       0x161    /* Back Tab */
    251  1.22       mrg #define    KEY_BEG        0x162    /* Begin key */
    252  1.22       mrg #define    KEY_CANCEL     0x163    /* Cancel key */
    253  1.22       mrg #define    KEY_CLOSE      0x164    /* Close Key */
    254  1.22       mrg #define    KEY_COMMAND    0x165    /* Command Key */
    255  1.22       mrg #define    KEY_COPY       0x166    /* Copy key */
    256  1.22       mrg #define    KEY_CREATE     0x167    /* Create key */
    257  1.22       mrg #define    KEY_END        0x168    /* End key */
    258  1.22       mrg #define    KEY_EXIT       0x169    /* Exit key */
    259  1.22       mrg #define    KEY_FIND       0x16A    /* Find key */
    260  1.22       mrg #define    KEY_HELP       0x16B    /* Help key */
    261  1.22       mrg #define    KEY_MARK       0x16C    /* Mark key */
    262  1.22       mrg #define    KEY_MESSAGE    0x16D    /* Message key */
    263  1.22       mrg #define    KEY_MOVE       0x16E    /* Move key */
    264  1.22       mrg #define    KEY_NEXT       0x16F    /* Next Object key */
    265  1.22       mrg #define    KEY_OPEN       0x170    /* Open key */
    266  1.22       mrg #define    KEY_OPTIONS    0x171    /* Options key */
    267  1.22       mrg #define    KEY_PREVIOUS   0x172    /* Previous Object key */
    268  1.22       mrg #define    KEY_REDO       0x173    /* Redo key */
    269  1.22       mrg #define    KEY_REFERENCE  0x174    /* Ref Key */
    270  1.22       mrg #define    KEY_REFRESH    0x175    /* Refresh key */
    271  1.22       mrg #define    KEY_REPLACE    0x176    /* Replace key */
    272  1.22       mrg #define    KEY_RESTART    0x177    /* Restart key */
    273  1.22       mrg #define    KEY_RESUME     0x178    /* Resume key */
    274  1.22       mrg #define    KEY_SAVE       0x179    /* Save key */
    275  1.22       mrg #define    KEY_SBEG       0x17A    /* Shift begin key */
    276  1.22       mrg #define    KEY_SCANCEL    0x17B    /* Shift Cancel key */
    277  1.22       mrg #define    KEY_SCOMMAND   0x17C    /* Shift Command key */
    278  1.22       mrg #define    KEY_SCOPY      0x17D    /* Shift Copy key */
    279  1.22       mrg #define    KEY_SCREATE    0x17E    /* Shift Create key */
    280  1.22       mrg #define    KEY_SDC        0x17F    /* Shift Delete Character */
    281  1.22       mrg #define    KEY_SDL        0x180    /* Shift Delete Line */
    282  1.22       mrg #define    KEY_SELECT     0x181    /* Select key */
    283  1.22       mrg #define    KEY_SEND       0x182    /* Send key */
    284  1.22       mrg #define    KEY_SEOL       0x183    /* Shift Clear Line key */
    285  1.22       mrg #define    KEY_SEXIT      0x184    /* Shift Exit key */
    286  1.22       mrg #define    KEY_SFIND      0x185    /* Shift Find key */
    287  1.22       mrg #define    KEY_SHELP      0x186    /* Shift Help key */
    288  1.22       mrg #define    KEY_SHOME      0x187    /* Shift Home key */
    289  1.22       mrg #define    KEY_SIC        0x188    /* Shift Input key */
    290  1.22       mrg #define    KEY_SLEFT      0x189    /* Shift Left Arrow key */
    291  1.22       mrg #define    KEY_SMESSAGE   0x18A    /* Shift Message key */
    292  1.22       mrg #define    KEY_SMOVE      0x18B    /* Shift Move key */
    293  1.22       mrg #define    KEY_SNEXT      0x18C    /* Shift Next key */
    294  1.22       mrg #define    KEY_SOPTIONS   0x18D    /* Shift Options key */
    295  1.22       mrg #define    KEY_SPREVIOUS  0x18E    /* Shift Previous key */
    296  1.22       mrg #define    KEY_SPRINT     0x18F    /* Shift Print key */
    297  1.22       mrg #define    KEY_SREDO      0x190    /* Shift Redo key */
    298  1.22       mrg #define    KEY_SREPLACE   0x191    /* Shift Replace key */
    299  1.22       mrg #define    KEY_SRIGHT     0x192    /* Shift Right Arrow key */
    300  1.44       jdc #define    KEY_SRSUME     0x193    /* Shift Resume key */
    301  1.22       mrg #define    KEY_SSAVE      0x194    /* Shift Save key */
    302  1.22       mrg #define    KEY_SSUSPEND   0x195    /* Shift Suspend key */
    303  1.22       mrg #define    KEY_SUNDO      0x196    /* Shift Undo key */
    304  1.22       mrg #define    KEY_SUSPEND    0x197    /* Suspend key */
    305  1.44       jdc #define    KEY_UNDO       0x198    /* Undo key */
    306  1.58       wiz #define    KEY_MOUSE      0x199    /* Mouse event has occurred */
    307  1.44       jdc #define    KEY_MAX        0x199    /* maximum extended key value */
    308  1.22       mrg 
    309   1.7       cgd /* 8-bit ASCII characters. */
    310  1.29    simonb #define	unctrl(c)		__unctrl[((unsigned)c) & 0xff]
    311  1.29    simonb #define	unctrllen(ch)		__unctrllen[((unsigned)ch) & 0xff]
    312   1.7       cgd 
    313  1.22       mrg extern char	 *__unctrl[256];	/* Control strings. */
    314   1.7       cgd extern char	 __unctrllen[256];	/* Control strings length. */
    315   1.7       cgd 
    316   1.7       cgd /*
    317   1.7       cgd  * A window an array of __LINE structures pointed to by the 'lines' pointer.
    318   1.7       cgd  * A line is an array of __LDATA structures pointed to by the 'line' pointer.
    319   1.7       cgd  */
    320   1.7       cgd 
    321  1.31       jdc /*
    322  1.31       jdc  * Definitions for characters and attributes in __LDATA
    323  1.31       jdc  */
    324  1.31       jdc #define __CHARTEXT	0x000000ff	/* bits for 8-bit characters */
    325  1.31       jdc #define __NORMAL	0x00000000	/* Added characters are normal. */
    326  1.31       jdc #define __STANDOUT	0x00010000	/* Added characters are standout. */
    327  1.31       jdc #define __UNDERSCORE	0x00020000	/* Added characters are underscored. */
    328  1.31       jdc #define __REVERSE	0x00040000	/* Added characters are reverse
    329  1.31       jdc 					   video. */
    330  1.31       jdc #define __BLINK		0x00080000	/* Added characters are blinking. */
    331  1.31       jdc #define __DIM		0x00100000	/* Added characters are dim. */
    332  1.31       jdc #define __BOLD		0x00200000	/* Added characters are bold. */
    333  1.31       jdc #define __BLANK		0x00400000	/* Added characters are blanked. */
    334  1.31       jdc #define __PROTECT	0x00800000	/* Added characters are protected. */
    335  1.31       jdc #define __ALTCHARSET	0x01000000	/* Added characters are ACS */
    336  1.45   mycroft #define __COLOR		0x7e000000	/* Color bits */
    337  1.45   mycroft #define __ATTRIBUTES	0x7fff0000	/* All 8-bit attribute bits */
    338  1.31       jdc 
    339  1.30     blymn typedef struct __ldata __LDATA;
    340  1.30     blymn typedef struct __line  __LINE;
    341  1.30     blymn typedef struct __window  WINDOW;
    342  1.62     blymn typedef struct __screen SCREEN;
    343  1.30     blymn 
    344  1.30     blymn /*
    345  1.30     blymn  * Attribute definitions
    346  1.30     blymn  */
    347  1.31       jdc #define	A_NORMAL	__NORMAL
    348  1.30     blymn #define	A_STANDOUT	__STANDOUT
    349  1.30     blymn #define	A_UNDERLINE	__UNDERSCORE
    350  1.30     blymn #define	A_REVERSE	__REVERSE
    351  1.30     blymn #define	A_BLINK		__BLINK
    352  1.30     blymn #define	A_DIM		__DIM
    353  1.30     blymn #define	A_BOLD		__BOLD
    354  1.30     blymn #define	A_BLANK		__BLANK
    355  1.30     blymn #define	A_PROTECT	__PROTECT
    356  1.31       jdc #define	A_ALTCHARSET	__ALTCHARSET
    357  1.31       jdc #define	A_ATTRIBUTES	__ATTRIBUTES
    358  1.31       jdc #define	A_CHARTEXT	__CHARTEXT
    359  1.31       jdc #define	A_COLOR		__COLOR
    360  1.30     blymn 
    361  1.30     blymn /*
    362  1.30     blymn  * Alternate character set definitions
    363  1.30     blymn  */
    364  1.30     blymn 
    365  1.31       jdc #define	NUM_ACS	128
    366  1.30     blymn 
    367  1.30     blymn extern chtype _acs_char[NUM_ACS];
    368  1.30     blymn 
    369  1.31       jdc #define	ACS_RARROW	_acs_char['+']
    370  1.31       jdc #define	ACS_LARROW	_acs_char[',']
    371  1.31       jdc #define	ACS_UARROW	_acs_char['-']
    372  1.31       jdc #define	ACS_DARROW	_acs_char['.']
    373  1.31       jdc #define	ACS_BLOCK	_acs_char['0']
    374  1.31       jdc #define	ACS_DIAMOND	_acs_char['`']
    375  1.31       jdc #define	ACS_CKBOARD	_acs_char['a']
    376  1.31       jdc #define	ACS_DEGREE	_acs_char['f']
    377  1.31       jdc #define	ACS_PLMINUS	_acs_char['g']
    378  1.31       jdc #define	ACS_BOARD	_acs_char['h']
    379  1.31       jdc #define	ACS_LANTERN	_acs_char['i']
    380  1.31       jdc #define	ACS_LRCORNER	_acs_char['j']
    381  1.31       jdc #define	ACS_URCORNER	_acs_char['k']
    382  1.31       jdc #define	ACS_ULCORNER	_acs_char['l']
    383  1.31       jdc #define	ACS_LLCORNER	_acs_char['m']
    384  1.31       jdc #define	ACS_PLUS	_acs_char['n']
    385  1.31       jdc #define	ACS_HLINE	_acs_char['q']
    386  1.31       jdc #define	ACS_S1		_acs_char['o']
    387  1.31       jdc #define	ACS_S9		_acs_char['s']
    388  1.31       jdc #define	ACS_LTEE	_acs_char['t']
    389  1.31       jdc #define	ACS_RTEE	_acs_char['u']
    390  1.31       jdc #define	ACS_BTEE	_acs_char['v']
    391  1.31       jdc #define	ACS_TTEE	_acs_char['w']
    392  1.31       jdc #define	ACS_VLINE	_acs_char['x']
    393  1.31       jdc #define	ACS_BULLET	_acs_char['~']
    394  1.30     blymn 
    395  1.57       wiz /* System V compatibility */
    396  1.31       jdc #define	ACS_SBBS	ACS_LRCORNER
    397  1.31       jdc #define	ACS_BBSS	ACS_URCORNER
    398  1.30     blymn #define	ACS_BSSB	ACS_ULCORNER
    399  1.31       jdc #define	ACS_SSBB	ACS_LLCORNER
    400  1.31       jdc #define	ACS_SSSS	ACS_PLUS
    401  1.31       jdc #define	ACS_BSBS	ACS_HLINE
    402  1.31       jdc #define	ACS_SSSB	ACS_LTEE
    403  1.31       jdc #define	ACS_SBSS	ACS_RTEE
    404  1.30     blymn #define	ACS_SSBS	ACS_BTEE
    405  1.30     blymn #define	ACS_BSSS	ACS_TTEE
    406  1.30     blymn #define	ACS_SBSB	ACS_VLINE
    407  1.31       jdc #define	_acs_map	_acs_char
    408  1.30     blymn 
    409  1.30     blymn /*
    410  1.31       jdc  * Colour definitions (ANSI colour numbers)
    411  1.30     blymn  */
    412  1.30     blymn 
    413  1.31       jdc #define	COLOR_BLACK	0x00
    414  1.31       jdc #define	COLOR_RED	0x01
    415  1.31       jdc #define	COLOR_GREEN	0x02
    416  1.31       jdc #define	COLOR_YELLOW	0x03
    417  1.31       jdc #define	COLOR_BLUE	0x04
    418  1.31       jdc #define	COLOR_MAGENTA	0x05
    419  1.31       jdc #define	COLOR_CYAN	0x06
    420  1.31       jdc #define	COLOR_WHITE	0x07
    421   1.7       cgd 
    422  1.54  christos #define	COLOR_PAIR(n)	((((u_int32_t)n) << 25) & A_COLOR)
    423  1.54  christos #define	PAIR_NUMBER(n)	((((u_int32_t)n) & A_COLOR) >> 25)
    424   1.7       cgd 
    425   1.4   mycroft /* Curses external declarations. */
    426   1.4   mycroft extern WINDOW	*curscr;		/* Current screen. */
    427   1.4   mycroft extern WINDOW	*stdscr;		/* Standard screen. */
    428   1.4   mycroft 
    429   1.7       cgd extern struct termios __orig_termios;	/* Terminal state before curses */
    430   1.7       cgd extern struct termios __baset;		/* Our base terminal state */
    431  1.22       mrg extern int	__tcaction;		/* If terminal hardware set. */
    432   1.4   mycroft 
    433   1.4   mycroft extern int	 COLS;			/* Columns on the screen. */
    434   1.4   mycroft extern int	 LINES;			/* Lines on the screen. */
    435  1.31       jdc extern int	 COLORS;		/* Max colours on the screen. */
    436  1.31       jdc extern int	 COLOR_PAIRS;		/* Max colour pairs on the screen. */
    437   1.4   mycroft 
    438   1.4   mycroft extern char	*ttytype;		/* Full name of current terminal. */
    439   1.4   mycroft 
    440   1.4   mycroft #define	ERR	(0)			/* Error return. */
    441   1.4   mycroft #define	OK	(1)			/* Success return. */
    442   1.4   mycroft 
    443  1.33     blymn /*
    444  1.33     blymn  * The following have, traditionally, been macros but X/Open say they
    445  1.33     blymn  * need to be functions.  Keep the old macros for debugging.
    446  1.33     blymn  */
    447  1.33     blymn #ifdef _CURSES_USE_MACROS
    448   1.4   mycroft /* Standard screen pseudo functions. */
    449   1.7       cgd #define	addbytes(s, n)			__waddbytes(stdscr, s, n, 0)
    450   1.7       cgd #define	addch(ch)			waddch(stdscr, ch)
    451   1.7       cgd #define	addnstr(s, n)			waddnstr(stdscr, s, n)
    452  1.26    simonb #define	addstr(s)			waddnstr(stdscr, s, -1)
    453  1.31       jdc #define bkgd(ch)			wbkgd(stdscr, ch)
    454  1.31       jdc #define bkgdset(ch)			wbkgdset(stdscr, ch)
    455  1.30     blymn #define	border(l, r, t, b, tl, tr, bl, br) \
    456  1.30     blymn 	wborder(stdscr, l, r, t, b, tl, tr, bl, br)
    457   1.7       cgd #define	clear()				wclear(stdscr)
    458   1.7       cgd #define	clrtobot()			wclrtobot(stdscr)
    459   1.7       cgd #define	clrtoeol()			wclrtoeol(stdscr)
    460   1.7       cgd #define	delch()				wdelch(stdscr)
    461   1.7       cgd #define	deleteln()			wdeleteln(stdscr)
    462   1.7       cgd #define	erase()				werase(stdscr)
    463   1.7       cgd #define	getch()				wgetch(stdscr)
    464  1.56       jdc #define	getnstr(s, n)			wgetnstr(stdscr, s, n)
    465   1.7       cgd #define	getstr(s)			wgetstr(stdscr, s)
    466   1.7       cgd #define	inch()				winch(stdscr)
    467  1.52    simonb #define	inchnstr(c)			winchnstr(stdscr, c)
    468  1.52    simonb #define	inchstr(c)			winchstr(stdscr, c)
    469  1.52    simonb #define	innstr(s, n)			winnstr(stdscr, s, n)
    470   1.7       cgd #define	insch(ch)			winsch(stdscr, ch)
    471  1.30     blymn #define	insdelln(n)			winsdelln(stdscr, n)
    472   1.7       cgd #define	insertln()			winsertln(stdscr)
    473  1.52    simonb #define	instr(s)			winstr(stdscr, s)
    474   1.7       cgd #define	move(y, x)			wmove(stdscr, y, x)
    475   1.7       cgd #define	refresh()			wrefresh(stdscr)
    476  1.31       jdc #define	scrl(n)				wscrl(stdscr, n)
    477  1.55       jdc #define	setscrreg(t, b)			wsetscrreg(stdscr, t, b)
    478   1.7       cgd #define	standend()			wstandend(stdscr)
    479   1.7       cgd #define	standout()			wstandout(stdscr)
    480  1.22       mrg #define	timeout(delay)			wtimeout(stdscr, delay)
    481  1.22       mrg #define	underscore()			wunderscore(stdscr)
    482  1.22       mrg #define	underend()			wunderend(stdscr)
    483  1.22       mrg #define	attron(attr)			wattron(stdscr, attr)
    484  1.22       mrg #define	attroff(attr)			wattroff(stdscr, attr)
    485  1.22       mrg #define	attrset(attr)			wattrset(stdscr, attr)
    486   1.7       cgd #define	waddbytes(w, s, n)		__waddbytes(w, s, n, 0)
    487  1.26    simonb #define	waddstr(w, s)			waddnstr(w, s, -1)
    488   1.4   mycroft 
    489   1.4   mycroft /* Standard screen plus movement pseudo functions. */
    490   1.7       cgd #define	mvaddbytes(y, x, s, n)		mvwaddbytes(stdscr, y, x, s, n)
    491   1.7       cgd #define	mvaddch(y, x, ch)		mvwaddch(stdscr, y, x, ch)
    492   1.7       cgd #define	mvaddnstr(y, x, s, n)		mvwaddnstr(stdscr, y, x, s, n)
    493   1.7       cgd #define	mvaddstr(y, x, s)		mvwaddstr(stdscr, y, x, s)
    494   1.7       cgd #define	mvdelch(y, x)			mvwdelch(stdscr, y, x)
    495   1.7       cgd #define	mvgetch(y, x)			mvwgetch(stdscr, y, x)
    496  1.56       jdc #define	mvgetnstr(y, x, s)		mvwgetnstr(stdscr, y, x, s, n)
    497   1.7       cgd #define	mvgetstr(y, x, s)		mvwgetstr(stdscr, y, x, s)
    498   1.7       cgd #define	mvinch(y, x)			mvwinch(stdscr, y, x)
    499  1.52    simonb #define	mvinchnstr(y, x, c, n)		mvwinchnstr(stdscr, y, x, c, n)
    500  1.52    simonb #define	mvinchstr(y, x, c)		mvwinchstr(stdscr, y, x, c)
    501  1.52    simonb #define	mvinnstr(y, x, s, n)		mvwinnstr(stdscr, y, x, s, n)
    502   1.7       cgd #define	mvinsch(y, x, c)		mvwinsch(stdscr, y, x, c)
    503  1.52    simonb #define	mvinstr(y, x, s)		mvwinstr(stdscr, y, x, s)
    504   1.7       cgd #define	mvwaddbytes(w, y, x, s, n) \
    505   1.7       cgd 	(wmove(w, y, x) == ERR ? ERR : __waddbytes(w, s, n, 0))
    506   1.7       cgd #define	mvwaddch(w, y, x, ch) \
    507   1.7       cgd 	(wmove(w, y, x) == ERR ? ERR : waddch(w, ch))
    508   1.7       cgd #define	mvwaddnstr(w, y, x, s, n) \
    509   1.7       cgd 	(wmove(w, y, x) == ERR ? ERR : waddnstr(w, s, n))
    510   1.7       cgd #define	mvwaddstr(w, y, x, s) \
    511  1.25    simonb 	(wmove(w, y, x) == ERR ? ERR : waddnstr(w, s, -1))
    512   1.7       cgd #define	mvwdelch(w, y, x) \
    513   1.7       cgd 	(wmove(w, y, x) == ERR ? ERR : wdelch(w))
    514   1.7       cgd #define	mvwgetch(w, y, x) \
    515   1.7       cgd 	(wmove(w, y, x) == ERR ? ERR : wgetch(w))
    516  1.56       jdc #define	mvwgetnstr(w, y, x, s, n) \
    517  1.56       jdc 	(wmove(w, y, x) == ERR ? ERR : wgetnstr(w, s, n))
    518   1.7       cgd #define	mvwgetstr(w, y, x, s) \
    519   1.7       cgd 	(wmove(w, y, x) == ERR ? ERR : wgetstr(w, s))
    520   1.7       cgd #define	mvwinch(w, y, x) \
    521   1.7       cgd 	(wmove(w, y, x) == ERR ? ERR : winch(w))
    522  1.52    simonb #define	mvwinchnstr(w, y, x, c, n) \
    523  1.52    simonb 	(wmove(w, y, x) == ERR ? ERR : winchnstr(w, c, n))
    524  1.52    simonb #define	mvwinchstr(w, y, x, s) \
    525  1.52    simonb 	(wmove(w, y, x) == ERR ? ERR : winchstr(w, c))
    526  1.52    simonb #define	mvwinnstr(w, y, x, s, n) \
    527  1.52    simonb 	(wmove(w, y, x) == ERR ? ERR : winnstr(w, s, n))
    528   1.7       cgd #define	mvwinsch(w, y, x, c) \
    529   1.7       cgd 	(wmove(w, y, x) == ERR ? ERR : winsch(w, c))
    530  1.52    simonb #define	mvwinstr(w, y, x, s) \
    531  1.52    simonb 	(wmove(w, y, x) == ERR ? ERR : winstr(w, s))
    532   1.7       cgd 
    533  1.17       jtc #define	getyx(w, y, x)		(y) = getcury(w), (x) = getcurx(w)
    534  1.51       jdc #define	getbegyx(w, y, x)	(y) = getbegy(w), (x) = getbegx(w)
    535  1.51       jdc #define	getmaxyx(w, y, x)	(y) = getmaxy(w), (x) = getmaxx(w)
    536  1.33     blymn 
    537  1.33     blymn #else
    538  1.33     blymn /* Use functions not macros... */
    539  1.44       jdc __BEGIN_DECLS
    540  1.44       jdc int	 addbytes(const char *, int);
    541  1.44       jdc int	 addch(chtype);
    542  1.44       jdc int	 addnstr(const char *, int);
    543  1.44       jdc int	 addstr(const char *);
    544  1.44       jdc int	 bkgd(chtype);
    545  1.44       jdc void	 bkgdset(chtype);
    546  1.44       jdc int	 border(chtype, chtype, chtype, chtype,
    547  1.44       jdc 	   chtype, chtype, chtype, chtype);
    548  1.44       jdc int	 clear(void);
    549  1.44       jdc int	 clrtobot(void);
    550  1.44       jdc int	 clrtoeol(void);
    551  1.44       jdc int	 delch(void);
    552  1.44       jdc int	 deleteln(void);
    553  1.44       jdc int	 erase(void);
    554  1.44       jdc int	 getch(void);
    555  1.56       jdc int	 getnstr(char *, int);
    556  1.44       jdc int	 getstr(char *);
    557  1.44       jdc chtype	 inch(void);
    558  1.52    simonb int	 inchnstr(chtype *, int);
    559  1.52    simonb int	 inchstr(chtype *);
    560  1.52    simonb int	 innstr(char *, int);
    561  1.44       jdc int	 insch(chtype);
    562  1.44       jdc int	 insdelln(int);
    563  1.44       jdc int	 insertln(void);
    564  1.52    simonb int	 instr(char *);
    565  1.44       jdc int	 move(int, int);
    566  1.44       jdc int	 refresh(void);
    567  1.44       jdc int	 scrl(int);
    568  1.55       jdc int	 setscrreg(int, int);
    569  1.44       jdc int	 standend(void);
    570  1.44       jdc int	 standout(void);
    571  1.44       jdc void	 timeout(int);
    572  1.44       jdc int	 underscore(void);
    573  1.44       jdc int	 underend(void);
    574  1.44       jdc int	 attron(int);
    575  1.44       jdc int	 attroff(int);
    576  1.44       jdc int	 attrset(int);
    577  1.44       jdc int	 waddbytes(WINDOW *, const char *, int);
    578  1.44       jdc int	 waddstr(WINDOW *, const char *);
    579  1.33     blymn 
    580  1.33     blymn /* Standard screen plus movement functions. */
    581  1.44       jdc int	 mvaddbytes(int, int, const char *, int);
    582  1.44       jdc int	 mvaddch(int, int, chtype);
    583  1.44       jdc int	 mvaddnstr(int, int, const char *, int);
    584  1.44       jdc int	 mvaddstr(int, int, const char *);
    585  1.44       jdc int	 mvdelch(int, int);
    586  1.44       jdc int	 mvgetch(int, int);
    587  1.56       jdc int	 mvgetnstr(int, int, char *, int);
    588  1.44       jdc int	 mvgetstr(int, int, char *);
    589  1.44       jdc chtype	 mvinch(int, int);
    590  1.52    simonb int	 mvinchnstr(int, int, chtype *, int);
    591  1.52    simonb int	 mvinchstr(int, int, chtype *);
    592  1.52    simonb int	 mvinnstr(int, int, char *, int);
    593  1.44       jdc int	 mvinsch(int, int, chtype);
    594  1.52    simonb int	 mvinstr(int, int, char *);
    595  1.44       jdc 
    596  1.44       jdc int	 mvwaddbytes(WINDOW *, int, int, const char *, int);
    597  1.44       jdc int	 mvwaddch(WINDOW *, int, int, chtype);
    598  1.44       jdc int	 mvwaddnstr(WINDOW *, int, int, const char *, int);
    599  1.44       jdc int	 mvwaddstr(WINDOW *, int, int, const char *);
    600  1.44       jdc int	 mvwdelch(WINDOW *, int, int);
    601  1.44       jdc int	 mvwgetch(WINDOW *, int, int);
    602  1.56       jdc int	 mvwgetnstr(WINDOW *, int, int, char *, int);
    603  1.44       jdc int	 mvwgetstr(WINDOW *, int, int, char *);
    604  1.44       jdc chtype	 mvwinch(WINDOW *, int, int);
    605  1.44       jdc int	 mvwinsch(WINDOW *, int, int, chtype);
    606  1.44       jdc __END_DECLS
    607  1.33     blymn #endif /* _CURSES_USE_MACROS */
    608  1.33     blymn 
    609  1.34       jdc #define	getyx(w, y, x)		(y) = getcury(w), (x) = getcurx(w)
    610  1.31       jdc #define	getbegyx(w, y, x)	(y) = getbegy(w), (x) = getbegx(w)
    611  1.31       jdc #define	getmaxyx(w, y, x)	(y) = getmaxy(w), (x) = getmaxx(w)
    612  1.61     blymn #define	getparyx(w, y, x)	(y) = getpary(w), (x) = getparx(w)
    613   1.4   mycroft 
    614   1.4   mycroft /* Public function prototypes. */
    615  1.14       jtc __BEGIN_DECLS
    616  1.33     blymn int	 beep(void);
    617  1.47     blymn int	 box(WINDOW *, chtype, chtype);
    618  1.40     blymn bool	 can_change_colors(void);
    619  1.33     blymn int	 cbreak(void);
    620  1.47     blymn int	 clearok(WINDOW *, bool);
    621  1.47     blymn int	 color_content(short, short *, short *, short *);
    622  1.47     blymn int	 copywin(const WINDOW *, WINDOW *, int, int, int, int, int, int, int);
    623  1.47     blymn int	 curs_set(int);
    624  1.33     blymn int	 def_prog_mode(void);
    625  1.33     blymn int	 def_shell_mode(void);
    626  1.62     blymn int	 delay_output(int);
    627  1.62     blymn void     delscreen(SCREEN *);
    628  1.47     blymn int	 delwin(WINDOW *);
    629  1.47     blymn WINDOW	*derwin(WINDOW *, int, int, int, int);
    630  1.47     blymn WINDOW	*dupwin(WINDOW *);
    631  1.44       jdc int	 doupdate(void);
    632  1.33     blymn int	 echo(void);
    633  1.33     blymn int	 endwin(void);
    634  1.46     blymn char     erasechar(void);
    635  1.33     blymn int	 flash(void);
    636  1.33     blymn int	 flushinp(void);
    637  1.47     blymn int	 flushok(WINDOW *, bool);
    638  1.47     blymn char	*fullname(const char *, char *);
    639  1.48       jdc chtype	 getattrs(WINDOW *);
    640  1.47     blymn chtype	 getbkgd(WINDOW *);
    641  1.47     blymn char	*getcap(char *);
    642  1.47     blymn int	 getcury(WINDOW *);
    643  1.47     blymn int	 getcurx(WINDOW *);
    644  1.47     blymn int	 getbegy(WINDOW *);
    645  1.47     blymn int	 getbegx(WINDOW *);
    646  1.47     blymn int	 getmaxy(WINDOW *);
    647  1.47     blymn int	 getmaxx(WINDOW *);
    648  1.61     blymn int	 getpary(WINDOW *);
    649  1.61     blymn int	 getparx(WINDOW *);
    650  1.33     blymn int	 gettmode(void);
    651  1.33     blymn bool	 has_colors(void);
    652  1.55       jdc bool	 has_ic(void);
    653  1.55       jdc bool	 has_il(void);
    654  1.47     blymn int	 hline(chtype, int);
    655  1.47     blymn int	 idlok(WINDOW *, bool);
    656  1.47     blymn int	 init_color(short, short, short, short);
    657  1.47     blymn int	 init_pair(short, short, short);
    658  1.33     blymn WINDOW	*initscr(void);
    659  1.47     blymn int	 intrflush(WINDOW *, bool);
    660  1.33     blymn bool	 isendwin(void);
    661  1.47     blymn bool	 is_linetouched(WINDOW *, int);
    662  1.47     blymn bool	 is_wintouched(WINDOW *);
    663  1.47     blymn void	 keypad(WINDOW *, bool);
    664  1.46     blymn char     killchar(void);
    665  1.47     blymn int	 leaveok(WINDOW *, bool);
    666  1.33     blymn char	*longname(void);
    667  1.47     blymn int	 meta(WINDOW *, bool);
    668  1.47     blymn int	 mvcur(int, int, int, int);
    669  1.60     blymn int      mvderwin(WINDOW *, int, int);
    670  1.47     blymn int	 mvhline(int, int, chtype, int);
    671  1.47     blymn int	 mvprintw(int, int, const char *, ...)
    672  1.44       jdc 		__attribute__((__format__(__printf__, 3, 4)));
    673  1.47     blymn int	 mvscanw(int, int, const char *, ...)
    674  1.44       jdc 		__attribute__((__format__(__scanf__, 3, 4)));
    675  1.47     blymn int	 mvvline(int, int, chtype, int);
    676  1.47     blymn int	 mvwhline(WINDOW *, int, int, chtype, int);
    677  1.47     blymn int	 mvwvline(WINDOW *, int, int, chtype, int);
    678  1.47     blymn int	 mvwin(WINDOW *, int, int);
    679  1.52    simonb int	 mvwinchnstr(WINDOW *, int, int, chtype *, int);
    680  1.52    simonb int	 mvwinchstr(WINDOW *, int, int, chtype *);
    681  1.52    simonb int	 mvwinnstr(WINDOW *, int, int, char *, int);
    682  1.52    simonb int	 mvwinstr(WINDOW *, int, int, char *);
    683  1.47     blymn int	 mvwprintw(WINDOW *, int, int, const char *, ...)
    684  1.44       jdc 		__attribute__((__format__(__printf__, 4, 5)));
    685  1.47     blymn int	 mvwscanw(WINDOW *, int, int, const char *, ...)
    686  1.44       jdc 		__attribute__((__format__(__scanf__, 4, 5)));
    687  1.48       jdc int	 napms(int);
    688  1.62     blymn SCREEN  *newterm(char *, FILE *, FILE *);
    689  1.47     blymn WINDOW	*newwin(int, int, int, int);
    690  1.33     blymn int	 nl(void);
    691  1.33     blymn int	 nocbreak(void);
    692  1.47     blymn void	 nodelay(WINDOW *, bool);
    693  1.33     blymn int	 noecho(void);
    694  1.33     blymn int	 nonl(void);
    695  1.33     blymn int	 noraw(void);
    696  1.47     blymn int	 notimeout(WINDOW *, bool);
    697  1.47     blymn int	 overlay(const WINDOW *, WINDOW *);
    698  1.47     blymn int	 overwrite(const WINDOW *, WINDOW *);
    699  1.47     blymn int	 pair_content(short, short *, short *);
    700  1.44       jdc int	 printw(const char *, ...)
    701  1.44       jdc 		__attribute__((__format__(__printf__, 1, 2)));
    702  1.33     blymn int	 raw(void);
    703  1.33     blymn int	 reset_prog_mode(void);
    704  1.33     blymn int	 reset_shell_mode(void);
    705  1.33     blymn int	 resetty(void);
    706  1.59     blymn int      resizeterm(int, int);
    707  1.33     blymn int	 savetty(void);
    708  1.44       jdc int	 scanw(const char *, ...)
    709  1.44       jdc 		__attribute__((__format__(__scanf__, 1, 2)));
    710  1.47     blymn int	 scroll(WINDOW *);
    711  1.47     blymn int	 scrollok(WINDOW *, bool);
    712  1.33     blymn int	 setterm(char *);
    713  1.62     blymn SCREEN  *set_term(SCREEN *);
    714  1.44       jdc int	 start_color(void);
    715  1.47     blymn WINDOW	*subwin(WINDOW *, int, int, int, int);
    716  1.47     blymn int	 touchline(WINDOW *, int, int);
    717  1.47     blymn int	 touchoverlap(WINDOW *, WINDOW *);
    718  1.47     blymn int	 touchwin(WINDOW *);
    719  1.47     blymn int	 ungetch(int);
    720  1.47     blymn int	 untouchwin(WINDOW *);
    721  1.47     blymn int	 vline(chtype, int);
    722  1.47     blymn int	 vwprintw(WINDOW *, const char *, _BSD_VA_LIST_)
    723  1.44       jdc 		__attribute__((__format__(__printf__, 2, 0)));
    724  1.47     blymn int	 vwscanw(WINDOW *, const char *, _BSD_VA_LIST_)
    725  1.44       jdc 		__attribute__((__format__(__scanf__, 2, 0)));
    726  1.47     blymn int	 waddch(WINDOW *, chtype);
    727  1.47     blymn int	 waddnstr(WINDOW *, const char *, int);
    728  1.47     blymn int	 wattron(WINDOW *, int);
    729  1.47     blymn int	 wattroff(WINDOW *, int);
    730  1.47     blymn int	 wattrset(WINDOW *, int);
    731  1.47     blymn int	 wbkgd(WINDOW *, chtype);
    732  1.47     blymn void	 wbkgdset(WINDOW *, chtype);
    733  1.47     blymn int	 wborder(WINDOW *, chtype, chtype, chtype, chtype, chtype, chtype,
    734  1.47     blymn 		chtype, chtype);
    735  1.47     blymn int	 wclear(WINDOW *);
    736  1.47     blymn int	 wclrtobot(WINDOW *);
    737  1.47     blymn int	 wclrtoeol(WINDOW *);
    738  1.47     blymn int	 wdelch(WINDOW *);
    739  1.47     blymn int	 wdeleteln(WINDOW *);
    740  1.47     blymn int	 werase(WINDOW *);
    741  1.47     blymn int	 wgetch(WINDOW *);
    742  1.56       jdc int	 wgetnstr(WINDOW *, char *, int);
    743  1.47     blymn int	 wgetstr(WINDOW *, char *);
    744  1.47     blymn int	 whline(WINDOW *, chtype, int);
    745  1.47     blymn chtype	 winch(WINDOW *);
    746  1.52    simonb int	 winchnstr(WINDOW *, chtype *, int);
    747  1.52    simonb int	 winchstr(WINDOW *, chtype *);
    748  1.52    simonb int	 winnstr(WINDOW *, char *, int);
    749  1.47     blymn int	 winsch(WINDOW *, chtype);
    750  1.47     blymn int	 winsdelln(WINDOW *, int);
    751  1.47     blymn int	 winsertln(WINDOW *);
    752  1.52    simonb int	 winstr(WINDOW *, char *);
    753  1.47     blymn int	 wmove(WINDOW *, int, int);
    754  1.47     blymn int	 wnoutrefresh(WINDOW *);
    755  1.47     blymn int	 wprintw(WINDOW *, const char *, ...)
    756  1.44       jdc 		__attribute__((__format__(__printf__, 2, 3)));
    757  1.47     blymn int	 wrefresh(WINDOW *);
    758  1.59     blymn int      wresize(WINDOW *, int, int);
    759  1.47     blymn int	 wscanw(WINDOW *, const char *, ...)
    760  1.44       jdc 		__attribute__((__format__(__scanf__, 2, 3)));
    761  1.47     blymn int	 wscrl(WINDOW *, int);
    762  1.55       jdc int	 wsetscrreg(WINDOW *, int, int);
    763  1.47     blymn int	 wstandend(WINDOW *);
    764  1.47     blymn int	 wstandout(WINDOW *);
    765  1.47     blymn void	 wtimeout(WINDOW *, int);
    766  1.47     blymn int	 wtouchln(WINDOW *, int, int, int);
    767  1.47     blymn int	 wunderend(WINDOW *);
    768  1.47     blymn int	 wunderscore(WINDOW *);
    769  1.47     blymn int	 wvline(WINDOW *, chtype, int);
    770   1.4   mycroft 
    771   1.7       cgd /* Private functions that are needed for user programs prototypes. */
    772  1.33     blymn int	 __cputchar(int);
    773  1.47     blymn int	 __waddbytes(WINDOW *, const char *, int, attr_t);
    774  1.14       jtc __END_DECLS
    775   1.1       cgd 
    776   1.4   mycroft #endif /* !_CURSES_H_ */
    777