Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include
File: curses.h
/****************************************************************************
[0] Fix | Delete
* Copyright (c) 1998-2016,2017 Free Software Foundation, Inc. *
[1] Fix | Delete
* *
[2] Fix | Delete
* Permission is hereby granted, free of charge, to any person obtaining a *
[3] Fix | Delete
* copy of this software and associated documentation files (the *
[4] Fix | Delete
* "Software"), to deal in the Software without restriction, including *
[5] Fix | Delete
* without limitation the rights to use, copy, modify, merge, publish, *
[6] Fix | Delete
* distribute, distribute with modifications, sublicense, and/or sell *
[7] Fix | Delete
* copies of the Software, and to permit persons to whom the Software is *
[8] Fix | Delete
* furnished to do so, subject to the following conditions: *
[9] Fix | Delete
* *
[10] Fix | Delete
* The above copyright notice and this permission notice shall be included *
[11] Fix | Delete
* in all copies or substantial portions of the Software. *
[12] Fix | Delete
* *
[13] Fix | Delete
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
[14] Fix | Delete
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
[15] Fix | Delete
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
[16] Fix | Delete
* IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
[17] Fix | Delete
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
[18] Fix | Delete
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
[19] Fix | Delete
* THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
[20] Fix | Delete
* *
[21] Fix | Delete
* Except as contained in this notice, the name(s) of the above copyright *
[22] Fix | Delete
* holders shall not be used in advertising or otherwise to promote the *
[23] Fix | Delete
* sale, use or other dealings in this Software without prior written *
[24] Fix | Delete
* authorization. *
[25] Fix | Delete
****************************************************************************/
[26] Fix | Delete
[27] Fix | Delete
/****************************************************************************
[28] Fix | Delete
* Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 *
[29] Fix | Delete
* and: Eric S. Raymond <esr@snark.thyrsus.com> *
[30] Fix | Delete
* and: Thomas E. Dickey 1996-on *
[31] Fix | Delete
****************************************************************************/
[32] Fix | Delete
[33] Fix | Delete
/* $Id: curses.h.in,v 1.257 2017/11/21 00:11:37 tom Exp $ */
[34] Fix | Delete
[35] Fix | Delete
#ifndef __NCURSES_H
[36] Fix | Delete
#define __NCURSES_H
[37] Fix | Delete
[38] Fix | Delete
#define CURSES 1
[39] Fix | Delete
#define CURSES_H 1
[40] Fix | Delete
[41] Fix | Delete
/* These are defined only in curses.h, and are used for conditional compiles */
[42] Fix | Delete
#define NCURSES_VERSION_MAJOR 6
[43] Fix | Delete
#define NCURSES_VERSION_MINOR 1
[44] Fix | Delete
#define NCURSES_VERSION_PATCH 20180224
[45] Fix | Delete
[46] Fix | Delete
/* This is defined in more than one ncurses header, for identification */
[47] Fix | Delete
#undef NCURSES_VERSION
[48] Fix | Delete
#define NCURSES_VERSION "6.1"
[49] Fix | Delete
[50] Fix | Delete
/*
[51] Fix | Delete
* Identify the mouse encoding version.
[52] Fix | Delete
*/
[53] Fix | Delete
#define NCURSES_MOUSE_VERSION 2
[54] Fix | Delete
[55] Fix | Delete
/*
[56] Fix | Delete
* Definitions to facilitate DLL's.
[57] Fix | Delete
*/
[58] Fix | Delete
#include <ncurses_dll.h>
[59] Fix | Delete
[60] Fix | Delete
#if 1
[61] Fix | Delete
#include <stdint.h>
[62] Fix | Delete
#endif
[63] Fix | Delete
[64] Fix | Delete
/*
[65] Fix | Delete
* User-definable tweak to disable the include of <stdbool.h>.
[66] Fix | Delete
*/
[67] Fix | Delete
#ifndef NCURSES_ENABLE_STDBOOL_H
[68] Fix | Delete
#define NCURSES_ENABLE_STDBOOL_H 1
[69] Fix | Delete
#endif
[70] Fix | Delete
[71] Fix | Delete
/*
[72] Fix | Delete
* NCURSES_ATTR_T is used to quiet compiler warnings when building ncurses
[73] Fix | Delete
* configured using --disable-macros.
[74] Fix | Delete
*/
[75] Fix | Delete
#ifndef NCURSES_ATTR_T
[76] Fix | Delete
#define NCURSES_ATTR_T int
[77] Fix | Delete
#endif
[78] Fix | Delete
[79] Fix | Delete
/*
[80] Fix | Delete
* Expands to 'const' if ncurses is configured using --enable-const. Note that
[81] Fix | Delete
* doing so makes it incompatible with other implementations of X/Open Curses.
[82] Fix | Delete
*/
[83] Fix | Delete
#undef NCURSES_CONST
[84] Fix | Delete
#define NCURSES_CONST const
[85] Fix | Delete
[86] Fix | Delete
#undef NCURSES_INLINE
[87] Fix | Delete
#define NCURSES_INLINE inline
[88] Fix | Delete
[89] Fix | Delete
/*
[90] Fix | Delete
* The standard type used for color values, and for color-pairs. The latter
[91] Fix | Delete
* allows the curses library to enumerate the combinations of foreground and
[92] Fix | Delete
* background colors used by an application, and is normally the product of the
[93] Fix | Delete
* total foreground and background colors.
[94] Fix | Delete
*
[95] Fix | Delete
* X/Open uses "short" for both of these types, ultimately because they are
[96] Fix | Delete
* numbers from the SVr4 terminal database, which uses 16-bit signed values.
[97] Fix | Delete
*/
[98] Fix | Delete
#undef NCURSES_COLOR_T
[99] Fix | Delete
#define NCURSES_COLOR_T short
[100] Fix | Delete
[101] Fix | Delete
#undef NCURSES_PAIRS_T
[102] Fix | Delete
#define NCURSES_PAIRS_T short
[103] Fix | Delete
[104] Fix | Delete
/*
[105] Fix | Delete
* Definitions used to make WINDOW and similar structs opaque.
[106] Fix | Delete
*/
[107] Fix | Delete
#ifndef NCURSES_INTERNALS
[108] Fix | Delete
#define NCURSES_OPAQUE 0
[109] Fix | Delete
#define NCURSES_OPAQUE_FORM 0
[110] Fix | Delete
#define NCURSES_OPAQUE_MENU 0
[111] Fix | Delete
#define NCURSES_OPAQUE_PANEL 0
[112] Fix | Delete
#endif
[113] Fix | Delete
[114] Fix | Delete
/*
[115] Fix | Delete
* Definition used to optionally suppress wattr* macros to help with the
[116] Fix | Delete
* transition from ncurses5 to ncurses6 by allowing the header files to
[117] Fix | Delete
* be shared across development packages for ncursesw in both ABIs.
[118] Fix | Delete
*/
[119] Fix | Delete
#ifndef NCURSES_WATTR_MACROS
[120] Fix | Delete
#define NCURSES_WATTR_MACROS 0
[121] Fix | Delete
#endif
[122] Fix | Delete
[123] Fix | Delete
/*
[124] Fix | Delete
* The reentrant code relies on the opaque setting, but adds features.
[125] Fix | Delete
*/
[126] Fix | Delete
#ifndef NCURSES_REENTRANT
[127] Fix | Delete
#define NCURSES_REENTRANT 0
[128] Fix | Delete
#endif
[129] Fix | Delete
[130] Fix | Delete
/*
[131] Fix | Delete
* Control whether bindings for interop support are added.
[132] Fix | Delete
*/
[133] Fix | Delete
#undef NCURSES_INTEROP_FUNCS
[134] Fix | Delete
#define NCURSES_INTEROP_FUNCS 1
[135] Fix | Delete
[136] Fix | Delete
/*
[137] Fix | Delete
* The internal type used for window dimensions.
[138] Fix | Delete
*/
[139] Fix | Delete
#undef NCURSES_SIZE_T
[140] Fix | Delete
#define NCURSES_SIZE_T short
[141] Fix | Delete
[142] Fix | Delete
/*
[143] Fix | Delete
* Control whether tparm() supports varargs or fixed-parameter list.
[144] Fix | Delete
*/
[145] Fix | Delete
#undef NCURSES_TPARM_VARARGS
[146] Fix | Delete
#define NCURSES_TPARM_VARARGS 1
[147] Fix | Delete
[148] Fix | Delete
/*
[149] Fix | Delete
* Control type used for tparm's arguments. While X/Open equates long and
[150] Fix | Delete
* char* values, this is not always workable for 64-bit platforms.
[151] Fix | Delete
*/
[152] Fix | Delete
#undef NCURSES_TPARM_ARG
[153] Fix | Delete
#define NCURSES_TPARM_ARG intptr_t
[154] Fix | Delete
[155] Fix | Delete
/*
[156] Fix | Delete
* Control whether ncurses uses wcwidth() for checking width of line-drawing
[157] Fix | Delete
* characters.
[158] Fix | Delete
*/
[159] Fix | Delete
#undef NCURSES_WCWIDTH_GRAPHICS
[160] Fix | Delete
#define NCURSES_WCWIDTH_GRAPHICS 1
[161] Fix | Delete
[162] Fix | Delete
/*
[163] Fix | Delete
* NCURSES_CH_T is used in building the library, but not used otherwise in
[164] Fix | Delete
* this header file, since that would make the normal/wide-character versions
[165] Fix | Delete
* of the header incompatible.
[166] Fix | Delete
*/
[167] Fix | Delete
#undef NCURSES_CH_T
[168] Fix | Delete
#define NCURSES_CH_T cchar_t
[169] Fix | Delete
[170] Fix | Delete
#if 1 && defined(_LP64)
[171] Fix | Delete
typedef unsigned chtype;
[172] Fix | Delete
typedef unsigned mmask_t;
[173] Fix | Delete
#else
[174] Fix | Delete
typedef uint32_t chtype;
[175] Fix | Delete
typedef uint32_t mmask_t;
[176] Fix | Delete
#endif
[177] Fix | Delete
[178] Fix | Delete
/*
[179] Fix | Delete
* We need FILE, etc. Include this before checking any feature symbols.
[180] Fix | Delete
*/
[181] Fix | Delete
#include <stdio.h>
[182] Fix | Delete
[183] Fix | Delete
/*
[184] Fix | Delete
* With XPG4, you must define _XOPEN_SOURCE_EXTENDED, it is redundant (or
[185] Fix | Delete
* conflicting) when _XOPEN_SOURCE is 500 or greater. If NCURSES_WIDECHAR is
[186] Fix | Delete
* not already defined, e.g., if the platform relies upon nonstandard feature
[187] Fix | Delete
* test macros, define it at this point if the standard feature test macros
[188] Fix | Delete
* indicate that it should be defined.
[189] Fix | Delete
*/
[190] Fix | Delete
#ifndef NCURSES_WIDECHAR
[191] Fix | Delete
#if defined(_XOPEN_SOURCE_EXTENDED) || (defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE - 0 >= 500))
[192] Fix | Delete
#define NCURSES_WIDECHAR 1
[193] Fix | Delete
#else
[194] Fix | Delete
#define NCURSES_WIDECHAR 0
[195] Fix | Delete
#endif
[196] Fix | Delete
#endif /* NCURSES_WIDECHAR */
[197] Fix | Delete
[198] Fix | Delete
#include <stdarg.h> /* we need va_list */
[199] Fix | Delete
#if NCURSES_WIDECHAR
[200] Fix | Delete
#include <stddef.h> /* we want wchar_t */
[201] Fix | Delete
#endif
[202] Fix | Delete
[203] Fix | Delete
/* X/Open and SVr4 specify that curses implements 'bool'. However, C++ may also
[204] Fix | Delete
* implement it. If so, we must use the C++ compiler's type to avoid conflict
[205] Fix | Delete
* with other interfaces.
[206] Fix | Delete
*
[207] Fix | Delete
* A further complication is that <stdbool.h> may declare 'bool' to be a
[208] Fix | Delete
* different type, such as an enum which is not necessarily compatible with
[209] Fix | Delete
* C++. If we have <stdbool.h>, make 'bool' a macro, so users may #undef it.
[210] Fix | Delete
* Otherwise, let it remain a typedef to avoid conflicts with other #define's.
[211] Fix | Delete
* In either case, make a typedef for NCURSES_BOOL which can be used if needed
[212] Fix | Delete
* from either C or C++.
[213] Fix | Delete
*/
[214] Fix | Delete
[215] Fix | Delete
#undef TRUE
[216] Fix | Delete
#define TRUE 1
[217] Fix | Delete
[218] Fix | Delete
#undef FALSE
[219] Fix | Delete
#define FALSE 0
[220] Fix | Delete
[221] Fix | Delete
typedef unsigned char NCURSES_BOOL;
[222] Fix | Delete
[223] Fix | Delete
#if defined(__cplusplus) /* __cplusplus, etc. */
[224] Fix | Delete
[225] Fix | Delete
/* use the C++ compiler's bool type */
[226] Fix | Delete
#define NCURSES_BOOL bool
[227] Fix | Delete
[228] Fix | Delete
#else /* c89, c99, etc. */
[229] Fix | Delete
[230] Fix | Delete
#if NCURSES_ENABLE_STDBOOL_H
[231] Fix | Delete
#include <stdbool.h>
[232] Fix | Delete
/* use whatever the C compiler decides bool really is */
[233] Fix | Delete
#define NCURSES_BOOL bool
[234] Fix | Delete
#else
[235] Fix | Delete
/* there is no predefined bool - use our own */
[236] Fix | Delete
#undef bool
[237] Fix | Delete
#define bool NCURSES_BOOL
[238] Fix | Delete
#endif
[239] Fix | Delete
[240] Fix | Delete
#endif /* !__cplusplus, etc. */
[241] Fix | Delete
[242] Fix | Delete
#ifdef __cplusplus
[243] Fix | Delete
extern "C" {
[244] Fix | Delete
#define NCURSES_CAST(type,value) static_cast<type>(value)
[245] Fix | Delete
#else
[246] Fix | Delete
#define NCURSES_CAST(type,value) (type)(value)
[247] Fix | Delete
#endif
[248] Fix | Delete
[249] Fix | Delete
#define NCURSES_OK_ADDR(p) (0 != NCURSES_CAST(const void *, (p)))
[250] Fix | Delete
[251] Fix | Delete
/*
[252] Fix | Delete
* X/Open attributes. In the ncurses implementation, they are identical to the
[253] Fix | Delete
* A_ attributes.
[254] Fix | Delete
*/
[255] Fix | Delete
#define WA_ATTRIBUTES A_ATTRIBUTES
[256] Fix | Delete
#define WA_NORMAL A_NORMAL
[257] Fix | Delete
#define WA_STANDOUT A_STANDOUT
[258] Fix | Delete
#define WA_UNDERLINE A_UNDERLINE
[259] Fix | Delete
#define WA_REVERSE A_REVERSE
[260] Fix | Delete
#define WA_BLINK A_BLINK
[261] Fix | Delete
#define WA_DIM A_DIM
[262] Fix | Delete
#define WA_BOLD A_BOLD
[263] Fix | Delete
#define WA_ALTCHARSET A_ALTCHARSET
[264] Fix | Delete
#define WA_INVIS A_INVIS
[265] Fix | Delete
#define WA_PROTECT A_PROTECT
[266] Fix | Delete
#define WA_HORIZONTAL A_HORIZONTAL
[267] Fix | Delete
#define WA_LEFT A_LEFT
[268] Fix | Delete
#define WA_LOW A_LOW
[269] Fix | Delete
#define WA_RIGHT A_RIGHT
[270] Fix | Delete
#define WA_TOP A_TOP
[271] Fix | Delete
#define WA_VERTICAL A_VERTICAL
[272] Fix | Delete
[273] Fix | Delete
#if 1
[274] Fix | Delete
#define WA_ITALIC A_ITALIC /* ncurses extension */
[275] Fix | Delete
#endif
[276] Fix | Delete
[277] Fix | Delete
/* colors */
[278] Fix | Delete
#define COLOR_BLACK 0
[279] Fix | Delete
#define COLOR_RED 1
[280] Fix | Delete
#define COLOR_GREEN 2
[281] Fix | Delete
#define COLOR_YELLOW 3
[282] Fix | Delete
#define COLOR_BLUE 4
[283] Fix | Delete
#define COLOR_MAGENTA 5
[284] Fix | Delete
#define COLOR_CYAN 6
[285] Fix | Delete
#define COLOR_WHITE 7
[286] Fix | Delete
[287] Fix | Delete
/* line graphics */
[288] Fix | Delete
[289] Fix | Delete
#if 0 || NCURSES_REENTRANT
[290] Fix | Delete
NCURSES_WRAPPED_VAR(chtype*, acs_map);
[291] Fix | Delete
#define acs_map NCURSES_PUBLIC_VAR(acs_map())
[292] Fix | Delete
#else
[293] Fix | Delete
extern NCURSES_EXPORT_VAR(chtype) acs_map[];
[294] Fix | Delete
#endif
[295] Fix | Delete
[296] Fix | Delete
#define NCURSES_ACS(c) (acs_map[NCURSES_CAST(unsigned char,(c))])
[297] Fix | Delete
[298] Fix | Delete
/* VT100 symbols begin here */
[299] Fix | Delete
#define ACS_ULCORNER NCURSES_ACS('l') /* upper left corner */
[300] Fix | Delete
#define ACS_LLCORNER NCURSES_ACS('m') /* lower left corner */
[301] Fix | Delete
#define ACS_URCORNER NCURSES_ACS('k') /* upper right corner */
[302] Fix | Delete
#define ACS_LRCORNER NCURSES_ACS('j') /* lower right corner */
[303] Fix | Delete
#define ACS_LTEE NCURSES_ACS('t') /* tee pointing right */
[304] Fix | Delete
#define ACS_RTEE NCURSES_ACS('u') /* tee pointing left */
[305] Fix | Delete
#define ACS_BTEE NCURSES_ACS('v') /* tee pointing up */
[306] Fix | Delete
#define ACS_TTEE NCURSES_ACS('w') /* tee pointing down */
[307] Fix | Delete
#define ACS_HLINE NCURSES_ACS('q') /* horizontal line */
[308] Fix | Delete
#define ACS_VLINE NCURSES_ACS('x') /* vertical line */
[309] Fix | Delete
#define ACS_PLUS NCURSES_ACS('n') /* large plus or crossover */
[310] Fix | Delete
#define ACS_S1 NCURSES_ACS('o') /* scan line 1 */
[311] Fix | Delete
#define ACS_S9 NCURSES_ACS('s') /* scan line 9 */
[312] Fix | Delete
#define ACS_DIAMOND NCURSES_ACS('`') /* diamond */
[313] Fix | Delete
#define ACS_CKBOARD NCURSES_ACS('a') /* checker board (stipple) */
[314] Fix | Delete
#define ACS_DEGREE NCURSES_ACS('f') /* degree symbol */
[315] Fix | Delete
#define ACS_PLMINUS NCURSES_ACS('g') /* plus/minus */
[316] Fix | Delete
#define ACS_BULLET NCURSES_ACS('~') /* bullet */
[317] Fix | Delete
/* Teletype 5410v1 symbols begin here */
[318] Fix | Delete
#define ACS_LARROW NCURSES_ACS(',') /* arrow pointing left */
[319] Fix | Delete
#define ACS_RARROW NCURSES_ACS('+') /* arrow pointing right */
[320] Fix | Delete
#define ACS_DARROW NCURSES_ACS('.') /* arrow pointing down */
[321] Fix | Delete
#define ACS_UARROW NCURSES_ACS('-') /* arrow pointing up */
[322] Fix | Delete
#define ACS_BOARD NCURSES_ACS('h') /* board of squares */
[323] Fix | Delete
#define ACS_LANTERN NCURSES_ACS('i') /* lantern symbol */
[324] Fix | Delete
#define ACS_BLOCK NCURSES_ACS('0') /* solid square block */
[325] Fix | Delete
/*
[326] Fix | Delete
* These aren't documented, but a lot of System Vs have them anyway
[327] Fix | Delete
* (you can spot pprryyzz{{||}} in a lot of AT&T terminfo strings).
[328] Fix | Delete
* The ACS_names may not match AT&T's, our source didn't know them.
[329] Fix | Delete
*/
[330] Fix | Delete
#define ACS_S3 NCURSES_ACS('p') /* scan line 3 */
[331] Fix | Delete
#define ACS_S7 NCURSES_ACS('r') /* scan line 7 */
[332] Fix | Delete
#define ACS_LEQUAL NCURSES_ACS('y') /* less/equal */
[333] Fix | Delete
#define ACS_GEQUAL NCURSES_ACS('z') /* greater/equal */
[334] Fix | Delete
#define ACS_PI NCURSES_ACS('{') /* Pi */
[335] Fix | Delete
#define ACS_NEQUAL NCURSES_ACS('|') /* not equal */
[336] Fix | Delete
#define ACS_STERLING NCURSES_ACS('}') /* UK pound sign */
[337] Fix | Delete
[338] Fix | Delete
/*
[339] Fix | Delete
* Line drawing ACS names are of the form ACS_trbl, where t is the top, r
[340] Fix | Delete
* is the right, b is the bottom, and l is the left. t, r, b, and l might
[341] Fix | Delete
* be B (blank), S (single), D (double), or T (thick). The subset defined
[342] Fix | Delete
* here only uses B and S.
[343] Fix | Delete
*/
[344] Fix | Delete
#define ACS_BSSB ACS_ULCORNER
[345] Fix | Delete
#define ACS_SSBB ACS_LLCORNER
[346] Fix | Delete
#define ACS_BBSS ACS_URCORNER
[347] Fix | Delete
#define ACS_SBBS ACS_LRCORNER
[348] Fix | Delete
#define ACS_SBSS ACS_RTEE
[349] Fix | Delete
#define ACS_SSSB ACS_LTEE
[350] Fix | Delete
#define ACS_SSBS ACS_BTEE
[351] Fix | Delete
#define ACS_BSSS ACS_TTEE
[352] Fix | Delete
#define ACS_BSBS ACS_HLINE
[353] Fix | Delete
#define ACS_SBSB ACS_VLINE
[354] Fix | Delete
#define ACS_SSSS ACS_PLUS
[355] Fix | Delete
[356] Fix | Delete
#undef ERR
[357] Fix | Delete
#define ERR (-1)
[358] Fix | Delete
[359] Fix | Delete
#undef OK
[360] Fix | Delete
#define OK (0)
[361] Fix | Delete
[362] Fix | Delete
/* values for the _flags member */
[363] Fix | Delete
#define _SUBWIN 0x01 /* is this a sub-window? */
[364] Fix | Delete
#define _ENDLINE 0x02 /* is the window flush right? */
[365] Fix | Delete
#define _FULLWIN 0x04 /* is the window full-screen? */
[366] Fix | Delete
#define _SCROLLWIN 0x08 /* bottom edge is at screen bottom? */
[367] Fix | Delete
#define _ISPAD 0x10 /* is this window a pad? */
[368] Fix | Delete
#define _HASMOVED 0x20 /* has cursor moved since last refresh? */
[369] Fix | Delete
#define _WRAPPED 0x40 /* cursor was just wrappped */
[370] Fix | Delete
[371] Fix | Delete
/*
[372] Fix | Delete
* this value is used in the firstchar and lastchar fields to mark
[373] Fix | Delete
* unchanged lines
[374] Fix | Delete
*/
[375] Fix | Delete
#define _NOCHANGE -1
[376] Fix | Delete
[377] Fix | Delete
/*
[378] Fix | Delete
* this value is used in the oldindex field to mark lines created by insertions
[379] Fix | Delete
* and scrolls.
[380] Fix | Delete
*/
[381] Fix | Delete
#define _NEWINDEX -1
[382] Fix | Delete
[383] Fix | Delete
typedef struct screen SCREEN;
[384] Fix | Delete
typedef struct _win_st WINDOW;
[385] Fix | Delete
[386] Fix | Delete
typedef chtype attr_t; /* ...must be at least as wide as chtype */
[387] Fix | Delete
[388] Fix | Delete
#if NCURSES_WIDECHAR
[389] Fix | Delete
[390] Fix | Delete
#if 0
[391] Fix | Delete
#ifdef mblen /* libutf8.h defines it w/o undefining first */
[392] Fix | Delete
#undef mblen
[393] Fix | Delete
#endif
[394] Fix | Delete
#include <libutf8.h>
[395] Fix | Delete
#endif
[396] Fix | Delete
[397] Fix | Delete
#if 1
[398] Fix | Delete
#include <wchar.h> /* ...to get mbstate_t, etc. */
[399] Fix | Delete
#endif
[400] Fix | Delete
[401] Fix | Delete
#if 0
[402] Fix | Delete
typedef unsigned short wchar_t1;
[403] Fix | Delete
#endif
[404] Fix | Delete
[405] Fix | Delete
#if 0
[406] Fix | Delete
typedef unsigned int wint_t1;
[407] Fix | Delete
#endif
[408] Fix | Delete
[409] Fix | Delete
/*
[410] Fix | Delete
* cchar_t stores an array of CCHARW_MAX wide characters. The first is
[411] Fix | Delete
* normally a spacing character. The others are non-spacing. If those
[412] Fix | Delete
* (spacing and nonspacing) do not fill the array, a null L'\0' follows.
[413] Fix | Delete
* Otherwise, a null is assumed to follow when extracting via getcchar().
[414] Fix | Delete
*/
[415] Fix | Delete
#define CCHARW_MAX 5
[416] Fix | Delete
typedef struct
[417] Fix | Delete
{
[418] Fix | Delete
attr_t attr;
[419] Fix | Delete
wchar_t chars[CCHARW_MAX];
[420] Fix | Delete
#if 1
[421] Fix | Delete
#undef NCURSES_EXT_COLORS
[422] Fix | Delete
#define NCURSES_EXT_COLORS 20180224
[423] Fix | Delete
int ext_color; /* color pair, must be more than 16-bits */
[424] Fix | Delete
#endif
[425] Fix | Delete
}
[426] Fix | Delete
cchar_t;
[427] Fix | Delete
[428] Fix | Delete
#endif /* NCURSES_WIDECHAR */
[429] Fix | Delete
[430] Fix | Delete
#if !NCURSES_OPAQUE
[431] Fix | Delete
struct ldat;
[432] Fix | Delete
[433] Fix | Delete
struct _win_st
[434] Fix | Delete
{
[435] Fix | Delete
NCURSES_SIZE_T _cury, _curx; /* current cursor position */
[436] Fix | Delete
[437] Fix | Delete
/* window location and size */
[438] Fix | Delete
NCURSES_SIZE_T _maxy, _maxx; /* maximums of x and y, NOT window size */
[439] Fix | Delete
NCURSES_SIZE_T _begy, _begx; /* screen coords of upper-left-hand corner */
[440] Fix | Delete
[441] Fix | Delete
short _flags; /* window state flags */
[442] Fix | Delete
[443] Fix | Delete
/* attribute tracking */
[444] Fix | Delete
attr_t _attrs; /* current attribute for non-space character */
[445] Fix | Delete
chtype _bkgd; /* current background char/attribute pair */
[446] Fix | Delete
[447] Fix | Delete
/* option values set by user */
[448] Fix | Delete
bool _notimeout; /* no time out on function-key entry? */
[449] Fix | Delete
bool _clear; /* consider all data in the window invalid? */
[450] Fix | Delete
bool _leaveok; /* OK to not reset cursor on exit? */
[451] Fix | Delete
bool _scroll; /* OK to scroll this window? */
[452] Fix | Delete
bool _idlok; /* OK to use insert/delete line? */
[453] Fix | Delete
bool _idcok; /* OK to use insert/delete char? */
[454] Fix | Delete
bool _immed; /* window in immed mode? (not yet used) */
[455] Fix | Delete
bool _sync; /* window in sync mode? */
[456] Fix | Delete
bool _use_keypad; /* process function keys into KEY_ symbols? */
[457] Fix | Delete
int _delay; /* 0 = nodelay, <0 = blocking, >0 = delay */
[458] Fix | Delete
[459] Fix | Delete
struct ldat *_line; /* the actual line data */
[460] Fix | Delete
[461] Fix | Delete
/* global screen state */
[462] Fix | Delete
NCURSES_SIZE_T _regtop; /* top line of scrolling region */
[463] Fix | Delete
NCURSES_SIZE_T _regbottom; /* bottom line of scrolling region */
[464] Fix | Delete
[465] Fix | Delete
/* these are used only if this is a sub-window */
[466] Fix | Delete
int _parx; /* x coordinate of this window in parent */
[467] Fix | Delete
int _pary; /* y coordinate of this window in parent */
[468] Fix | Delete
WINDOW *_parent; /* pointer to parent if a sub-window */
[469] Fix | Delete
[470] Fix | Delete
/* these are used only if this is a pad */
[471] Fix | Delete
struct pdat
[472] Fix | Delete
{
[473] Fix | Delete
NCURSES_SIZE_T _pad_y, _pad_x;
[474] Fix | Delete
NCURSES_SIZE_T _pad_top, _pad_left;
[475] Fix | Delete
NCURSES_SIZE_T _pad_bottom, _pad_right;
[476] Fix | Delete
} _pad;
[477] Fix | Delete
[478] Fix | Delete
NCURSES_SIZE_T _yoffset; /* real begy is _begy + _yoffset */
[479] Fix | Delete
[480] Fix | Delete
#if NCURSES_WIDECHAR
[481] Fix | Delete
cchar_t _bkgrnd; /* current background char/attribute pair */
[482] Fix | Delete
#if 1
[483] Fix | Delete
int _color; /* current color-pair for non-space character */
[484] Fix | Delete
#endif
[485] Fix | Delete
#endif
[486] Fix | Delete
};
[487] Fix | Delete
#endif /* NCURSES_OPAQUE */
[488] Fix | Delete
[489] Fix | Delete
/*
[490] Fix | Delete
* This is an extension to support events...
[491] Fix | Delete
*/
[492] Fix | Delete
#if 1
[493] Fix | Delete
#ifdef NCURSES_WGETCH_EVENTS
[494] Fix | Delete
#if !defined(__BEOS__) || defined(__HAIKU__)
[495] Fix | Delete
/* Fix _nc_timed_wait() on BEOS... */
[496] Fix | Delete
# define NCURSES_EVENT_VERSION 1
[497] Fix | Delete
#endif /* !defined(__BEOS__) */
[498] Fix | Delete
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function