/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1996, by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
*
* XCurses Library
*
* Copyright 1990, 1995 by Mortice Kern Systems Inc. All rights reserved.
*
*/
#include <mks.h>
#include <curses.h>
#ifndef M_CURSES_VERSION
#endif
#ifndef M_TERM_NAME
#endif
#ifndef M_TERMINFO_DIR
#endif
/*
* Interbyte timer value used for processing multibyte function keys.
*/
#ifndef M_CURSES_INTERBYTE_TIME
#endif
/*
* Maximum number of lines that can be ripped off.
*/
#ifndef M_CURSES_MAX_RIPOFFLINE
#endif
/*
* See copywin() and wrefresh() case 4. It is unclear whether XPG4 V2
* disallows supporting case 4 (expanding characters straddling a window
* boundary).
*/
#define M_CURSES_SENSIBLE_WINDOWS
/*
* Enable typeahead() support.
*/
#define M_CURSES_TYPEAHEAD
/*
* Not everyone supports the latest version of the (draft) MSE.
*/
#endif
/***
*** END OF CONFIGURABLE SECTION
***/
/*
* Constant WINDOW definition attributes.
*/
/*
* WINDOW state.
*/
/*
* Configurable WINDOW options.
*/
/*
* Flags used in SCREEN.
*/
typedef struct t_decode {
} t_decode;
typedef struct {
struct {
} t_rip;
extern SCREEN *__m_screen;
extern int __m_slk_format;
extern short __m_keyindex[][2];
extern void __m_trace(const char *, ...);
#ifdef M_CURSES_TRACE
extern int __m_return_code(const char *, int);
extern int __m_return_int(const char *, int);
extern void *__m_return_pointer(const char *, const void *);
extern void __m_return_void(const char *);
#else
#define __m_return_code(s, c) (c)
#define __m_return_int(s, c) (c)
#define __m_return_chtype(s, c) (c)
#define __m_return_pointer(s, p) (p)
#define __m_return_void(s)
#endif /* M_CURSES_TRACE */
extern int __m_cc_mbs(const cchar_t *, char *, int);
extern int __m_cc_sort(cchar_t *);
extern int __m_cc_width(const cchar_t *);
extern int __m_cc_write(const cchar_t *);
extern int __m_cc_first(WINDOW *, int, int);
extern int __m_cc_next(WINDOW *, int, int);
extern int __m_cc_islast(WINDOW *, int, int);
extern int __m_cc_expand(WINDOW *, int, int, int);
extern int __m_cc_erase(WINDOW *, int, int, int, int);
extern void __m_cc_hash(WINDOW *, unsigned long *, int);
extern int __m_set_echo(int);
extern int __m_tty_get(struct termios *);
extern int __m_tty_set(struct termios *);
extern int __m_decode_init(t_decode **);
extern void __m_decode_free(t_decode **);
extern int __m_do_scroll(WINDOW *, int, int, int *, int *);
extern int __m_ptr_move(void **, unsigned, unsigned, unsigned, unsigned);
extern int __m_doupdate_init(void);
extern void __m_mvcur_cost(void);
/*
* Unique callback functions to initialize a SCREEN's wide_io_t structure,
* which is used by __m_wio_get(). The __xc_ denotes XCurses and is used
* instead of __m_ to avoid possible name conflicts else-where in MKS
* libraries and applications. Note that wgetch() is used for the get
* function.
*/
extern int __xc_feof(void *);
extern int __xc_ferror(void *);
extern void __xc_clearerr(void *);
extern int __xc_ungetc(int, void *);
/*
* Input stack macros.
*/
/* end */