SM0 She11
Path:
/
/
usr
/
include
Full Path (server): /usr/include
Create Fil3
Upl04d Fil3
📄 FlexLexer.h
[E]
[D]
[R]
📁 GL
Open
[D]
[R]
📁 ImageMagick-6
Open
[D]
[R]
📁 X11
Open
[D]
[R]
📄 _G_config.h
[E]
[D]
[R]
📄 a.out.h
[E]
[D]
[R]
📄 aio.h
[E]
[D]
[R]
📄 aliases.h
[E]
[D]
[R]
📄 alloca.h
[E]
[D]
[R]
📁 apr-1
Open
[D]
[R]
📄 ar.h
[E]
[D]
[R]
📄 argon2.h
[E]
[D]
[R]
📄 argp.h
[E]
[D]
[R]
📄 argz.h
[E]
[D]
[R]
📁 arpa
Open
[D]
[R]
📁 asm
Open
[D]
[R]
📁 asm-generic
Open
[D]
[R]
📄 aspell.h
[E]
[D]
[R]
📄 assert.h
[E]
[D]
[R]
📁 bits
Open
[D]
[R]
📄 buffio.h
[E]
[D]
[R]
📄 byteswap.h
[E]
[D]
[R]
📄 bzlib.h
[E]
[D]
[R]
📁 c++
Open
[D]
[R]
📄 com_err.h
[E]
[D]
[R]
📄 complex.h
[E]
[D]
[R]
📄 cpio.h
[E]
[D]
[R]
📄 cpufreq.h
[E]
[D]
[R]
📄 crypt.h
[E]
[D]
[R]
📄 ctype.h
[E]
[D]
[R]
📁 curl
Open
[D]
[R]
📄 curses.h
[E]
[D]
[R]
📄 cursesapp.h
[E]
[D]
[R]
📄 cursesf.h
[E]
[D]
[R]
📄 cursesm.h
[E]
[D]
[R]
📄 cursesp.h
[E]
[D]
[R]
📄 cursesw.h
[E]
[D]
[R]
📄 cursslk.h
[E]
[D]
[R]
📄 db.h
[E]
[D]
[R]
📄 db_185.h
[E]
[D]
[R]
📄 dbm.h
[E]
[D]
[R]
📄 dirent.h
[E]
[D]
[R]
📄 dlfcn.h
[E]
[D]
[R]
📁 drm
Open
[D]
[R]
📄 dwarf.h
[E]
[D]
[R]
📄 ecpg_config.h
[E]
[D]
[R]
📄 ecpg_config_x86_64.h
[E]
[D]
[R]
📄 ecpg_informix.h
[E]
[D]
[R]
📄 ecpgerrno.h
[E]
[D]
[R]
📄 ecpglib.h
[E]
[D]
[R]
📄 ecpgtype.h
[E]
[D]
[R]
📁 editline
Open
[D]
[R]
📄 elf.h
[E]
[D]
[R]
📁 elfutils
Open
[D]
[R]
📁 enchant
Open
[D]
[R]
📄 endian.h
[E]
[D]
[R]
📄 envz.h
[E]
[D]
[R]
📄 err.h
[E]
[D]
[R]
📄 errno.h
[E]
[D]
[R]
📄 error.h
[E]
[D]
[R]
📁 et
Open
[D]
[R]
📄 eti.h
[E]
[D]
[R]
📄 etip.h
[E]
[D]
[R]
📄 execinfo.h
[E]
[D]
[R]
📄 expat.h
[E]
[D]
[R]
📄 expat_external.h
[E]
[D]
[R]
📄 fcntl.h
[E]
[D]
[R]
📄 features.h
[E]
[D]
[R]
📄 fenv.h
[E]
[D]
[R]
📄 fmtmsg.h
[E]
[D]
[R]
📄 fnmatch.h
[E]
[D]
[R]
📄 form.h
[E]
[D]
[R]
📄 fpu_control.h
[E]
[D]
[R]
📁 freetype2
Open
[D]
[R]
📄 fstab.h
[E]
[D]
[R]
📄 fts.h
[E]
[D]
[R]
📄 ftw.h
[E]
[D]
[R]
📄 gconv.h
[E]
[D]
[R]
📄 gcrypt-module.h
[E]
[D]
[R]
📄 gcrypt.h
[E]
[D]
[R]
📁 gdbm
Open
[D]
[R]
📄 gdbm.h
[E]
[D]
[R]
📄 gelf.h
[E]
[D]
[R]
📄 getopt.h
[E]
[D]
[R]
📁 ghostscript
Open
[D]
[R]
📁 gio-unix-2.0
Open
[D]
[R]
📁 glib-2.0
Open
[D]
[R]
📄 glob.h
[E]
[D]
[R]
📄 gmp-mparam-x86_64.h
[E]
[D]
[R]
📄 gmp-mparam.h
[E]
[D]
[R]
📄 gmp-x86_64.h
[E]
[D]
[R]
📄 gmp.h
[E]
[D]
[R]
📄 gmpxx.h
[E]
[D]
[R]
📁 gnu
Open
[D]
[R]
📄 gnu-versions.h
[E]
[D]
[R]
📄 gpg-error.h
[E]
[D]
[R]
📄 grp.h
[E]
[D]
[R]
📄 gshadow.h
[E]
[D]
[R]
📁 gssapi
Open
[D]
[R]
📄 gssapi.h
[E]
[D]
[R]
📁 gssrpc
Open
[D]
[R]
📄 histedit.h
[E]
[D]
[R]
📄 iconv.h
[E]
[D]
[R]
📄 ieee754.h
[E]
[D]
[R]
📄 ifaddrs.h
[E]
[D]
[R]
📁 ijs
Open
[D]
[R]
📁 imap
Open
[D]
[R]
📄 inttypes.h
[E]
[D]
[R]
📁 jasper
Open
[D]
[R]
📄 jconfig.h
[E]
[D]
[R]
📄 jerror.h
[E]
[D]
[R]
📄 jmorecfg.h
[E]
[D]
[R]
📄 jpeglib.h
[E]
[D]
[R]
📁 kadm5
Open
[D]
[R]
📄 kdb.h
[E]
[D]
[R]
📄 keyutils.h
[E]
[D]
[R]
📄 krad.h
[E]
[D]
[R]
📁 krb5
Open
[D]
[R]
📄 krb5.h
[E]
[D]
[R]
📄 langinfo.h
[E]
[D]
[R]
📄 lastlog.h
[E]
[D]
[R]
📁 layout
Open
[D]
[R]
📄 lber.h
[E]
[D]
[R]
📄 lber_types.h
[E]
[D]
[R]
📄 ldap.h
[E]
[D]
[R]
📄 ldap_cdefs.h
[E]
[D]
[R]
📄 ldap_features.h
[E]
[D]
[R]
📄 ldap_schema.h
[E]
[D]
[R]
📄 ldap_utf8.h
[E]
[D]
[R]
📄 ldif.h
[E]
[D]
[R]
📁 libdb
Open
[D]
[R]
📁 libdb4
Open
[D]
[R]
📄 libelf.h
[E]
[D]
[R]
📁 libexslt
Open
[D]
[R]
📄 libgen.h
[E]
[D]
[R]
📄 libintl.h
[E]
[D]
[R]
📄 libio.h
[E]
[D]
[R]
📁 libltdl
Open
[D]
[R]
📁 libpng15
Open
[D]
[R]
📁 libpq
Open
[D]
[R]
📄 libpq-events.h
[E]
[D]
[R]
📄 libpq-fe.h
[E]
[D]
[R]
📁 libxml2
Open
[D]
[R]
📁 libxslt
Open
[D]
[R]
📄 limits.h
[E]
[D]
[R]
📄 link.h
[E]
[D]
[R]
📁 linux
Open
[D]
[R]
📄 locale.h
[E]
[D]
[R]
📄 ltdl.h
[E]
[D]
[R]
📁 lzma
Open
[D]
[R]
📄 lzma.h
[E]
[D]
[R]
📄 malloc.h
[E]
[D]
[R]
📄 math.h
[E]
[D]
[R]
📄 mcheck.h
[E]
[D]
[R]
📄 mcrypt.h
[E]
[D]
[R]
📄 memory.h
[E]
[D]
[R]
📄 menu.h
[E]
[D]
[R]
📁 misc
Open
[D]
[R]
📄 mntent.h
[E]
[D]
[R]
📄 monetary.h
[E]
[D]
[R]
📄 mqueue.h
[E]
[D]
[R]
📁 mtd
Open
[D]
[R]
📁 mutils
Open
[D]
[R]
📁 mysql
Open
[D]
[R]
📄 nc_tparm.h
[E]
[D]
[R]
📁 ncurses
Open
[D]
[R]
📄 ncurses.h
[E]
[D]
[R]
📄 ncurses_dll.h
[E]
[D]
[R]
📁 ncursesw
Open
[D]
[R]
📄 ndbm.h
[E]
[D]
[R]
📁 net
Open
[D]
[R]
📁 net-snmp
Open
[D]
[R]
📁 netash
Open
[D]
[R]
📁 netatalk
Open
[D]
[R]
📁 netax25
Open
[D]
[R]
📄 netdb.h
[E]
[D]
[R]
📁 neteconet
Open
[D]
[R]
📁 netinet
Open
[D]
[R]
📁 netipx
Open
[D]
[R]
📁 netiucv
Open
[D]
[R]
📁 netpacket
Open
[D]
[R]
📁 netrom
Open
[D]
[R]
📁 netrose
Open
[D]
[R]
📁 nfs
Open
[D]
[R]
📄 nl_types.h
[E]
[D]
[R]
📄 nlist.h
[E]
[D]
[R]
📄 nss.h
[E]
[D]
[R]
📄 obstack.h
[E]
[D]
[R]
📄 oniggnu.h
[E]
[D]
[R]
📄 onigposix.h
[E]
[D]
[R]
📄 oniguruma.h
[E]
[D]
[R]
📁 openssl
Open
[D]
[R]
📄 panel.h
[E]
[D]
[R]
📄 paths.h
[E]
[D]
[R]
📄 pcre.h
[E]
[D]
[R]
📄 pcre_scanner.h
[E]
[D]
[R]
📄 pcre_stringpiece.h
[E]
[D]
[R]
📄 pcrecpp.h
[E]
[D]
[R]
📄 pcrecpparg.h
[E]
[D]
[R]
📄 pcreposix.h
[E]
[D]
[R]
📄 pg_config.h
[E]
[D]
[R]
📄 pg_config_manual.h
[E]
[D]
[R]
📄 pg_config_os.h
[E]
[D]
[R]
📄 pg_config_x86_64.h
[E]
[D]
[R]
📁 pgsql
Open
[D]
[R]
📄 pgtypes_date.h
[E]
[D]
[R]
📄 pgtypes_error.h
[E]
[D]
[R]
📄 pgtypes_interval.h
[E]
[D]
[R]
📄 pgtypes_numeric.h
[E]
[D]
[R]
📄 pgtypes_timestamp.h
[E]
[D]
[R]
📄 platform.h
[E]
[D]
[R]
📄 png.h
[E]
[D]
[R]
📄 pngconf.h
[E]
[D]
[R]
📄 pnglibconf.h
[E]
[D]
[R]
📄 poll.h
[E]
[D]
[R]
📄 popt.h
[E]
[D]
[R]
📄 postgres_ext.h
[E]
[D]
[R]
📄 printf.h
[E]
[D]
[R]
📄 profile.h
[E]
[D]
[R]
📁 protocols
Open
[D]
[R]
📁 pspell
Open
[D]
[R]
📄 pthread.h
[E]
[D]
[R]
📄 pty.h
[E]
[D]
[R]
📄 pwd.h
[E]
[D]
[R]
📁 python2.7
Open
[D]
[R]
📁 python3.6m
Open
[D]
[R]
📁 rdma
Open
[D]
[R]
📄 re_comp.h
[E]
[D]
[R]
📁 readline
Open
[D]
[R]
📄 recode.h
[E]
[D]
[R]
📄 recodext.h
[E]
[D]
[R]
📄 regex.h
[E]
[D]
[R]
📄 regexp.h
[E]
[D]
[R]
📄 resolv.h
[E]
[D]
[R]
📁 rpc
Open
[D]
[R]
📁 rpcsvc
Open
[D]
[R]
📁 rpm
Open
[D]
[R]
📁 sasl
Open
[D]
[R]
📄 sched.h
[E]
[D]
[R]
📁 scsi
Open
[D]
[R]
📄 search.h
[E]
[D]
[R]
📁 selinux
Open
[D]
[R]
📄 semaphore.h
[E]
[D]
[R]
📁 sensors
Open
[D]
[R]
📁 sepol
Open
[D]
[R]
📄 setjmp.h
[E]
[D]
[R]
📄 sgtty.h
[E]
[D]
[R]
📄 shadow.h
[E]
[D]
[R]
📄 signal.h
[E]
[D]
[R]
📄 slapi-plugin.h
[E]
[D]
[R]
📁 sound
Open
[D]
[R]
📄 spawn.h
[E]
[D]
[R]
📄 sql3types.h
[E]
[D]
[R]
📄 sqlca.h
[E]
[D]
[R]
📄 sqlda-compat.h
[E]
[D]
[R]
📄 sqlda-native.h
[E]
[D]
[R]
📄 sqlda.h
[E]
[D]
[R]
📄 sqlite3.h
[E]
[D]
[R]
📄 sqlite3ext.h
[E]
[D]
[R]
📄 stab.h
[E]
[D]
[R]
📄 stdc-predef.h
[E]
[D]
[R]
📄 stdint.h
[E]
[D]
[R]
📄 stdio.h
[E]
[D]
[R]
📄 stdio_ext.h
[E]
[D]
[R]
📄 stdlib.h
[E]
[D]
[R]
📄 string.h
[E]
[D]
[R]
📄 strings.h
[E]
[D]
[R]
📁 sys
Open
[D]
[R]
📄 syscall.h
[E]
[D]
[R]
📄 sysexits.h
[E]
[D]
[R]
📄 syslog.h
[E]
[D]
[R]
📄 tar.h
[E]
[D]
[R]
📄 tcpd.h
[E]
[D]
[R]
📄 term.h
[E]
[D]
[R]
📄 term_entry.h
[E]
[D]
[R]
📄 termcap.h
[E]
[D]
[R]
📄 termio.h
[E]
[D]
[R]
📄 termios.h
[E]
[D]
[R]
📄 tgmath.h
[E]
[D]
[R]
📄 thread_db.h
[E]
[D]
[R]
📄 tic.h
[E]
[D]
[R]
📄 tidy.h
[E]
[D]
[R]
📄 tidybuffio.h
[E]
[D]
[R]
📄 tidyenum.h
[E]
[D]
[R]
📄 tidyplatform.h
[E]
[D]
[R]
📄 tiff.h
[E]
[D]
[R]
📄 tiffconf-64.h
[E]
[D]
[R]
📄 tiffconf.h
[E]
[D]
[R]
📄 tiffio.h
[E]
[D]
[R]
📄 tiffio.hxx
[E]
[D]
[R]
📄 tiffvers.h
[E]
[D]
[R]
📄 time.h
[E]
[D]
[R]
📄 ttyent.h
[E]
[D]
[R]
📁 uapi
Open
[D]
[R]
📁 ucd-snmp
Open
[D]
[R]
📄 uchar.h
[E]
[D]
[R]
📄 ucontext.h
[E]
[D]
[R]
📄 ulimit.h
[E]
[D]
[R]
📄 unctrl.h
[E]
[D]
[R]
📁 unicode
Open
[D]
[R]
📄 unistd.h
[E]
[D]
[R]
📄 ustat.h
[E]
[D]
[R]
📄 utime.h
[E]
[D]
[R]
📄 utmp.h
[E]
[D]
[R]
📄 utmpx.h
[E]
[D]
[R]
📁 uuid
Open
[D]
[R]
📄 values.h
[E]
[D]
[R]
📄 verto-module.h
[E]
[D]
[R]
📄 verto.h
[E]
[D]
[R]
📁 video
Open
[D]
[R]
📁 vpx
Open
[D]
[R]
📄 wait.h
[E]
[D]
[R]
📄 wchar.h
[E]
[D]
[R]
📄 wctype.h
[E]
[D]
[R]
📁 webp
Open
[D]
[R]
📄 wordexp.h
[E]
[D]
[R]
📁 xcb
Open
[D]
[R]
📁 xen
Open
[D]
[R]
📄 xlocale.h
[E]
[D]
[R]
📄 zconf.h
[E]
[D]
[R]
📄 zlib.h
[E]
[D]
[R]
Editing: form.h
/**************************************************************************** * Copyright (c) 1998-2004,2009 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * * "Software"), to deal in the Software without restriction, including * * without limitation the rights to use, copy, modify, merge, publish, * * distribute, distribute with modifications, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included * * in all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the * * sale, use or other dealings in this Software without prior written * * authorization. * ****************************************************************************/ /**************************************************************************** * Author: Juergen Pfeifer, 1995,1997 * ****************************************************************************/ /* $Id: form.h,v 0.21 2009/11/07 19:31:11 tom Exp $ */ #ifndef FORM_H #define FORM_H #include <curses.h> #include <eti.h> #ifdef __cplusplus extern "C" { #endif #ifndef FORM_PRIV_H typedef void *FIELD_CELL; #endif #ifndef NCURSES_FIELD_INTERNALS #define NCURSES_FIELD_INTERNALS /* nothing */ #endif typedef int Form_Options; typedef int Field_Options; /********** * _PAGE * **********/ typedef struct { short pmin; /* index of first field on page */ short pmax; /* index of last field on page */ short smin; /* index of top leftmost field on page */ short smax; /* index of bottom rightmost field on page */ } _PAGE; /********** * FIELD * **********/ typedef struct fieldnode { unsigned short status; /* flags */ short rows; /* size in rows */ short cols; /* size in cols */ short frow; /* first row */ short fcol; /* first col */ int drows; /* dynamic rows */ int dcols; /* dynamic cols */ int maxgrow; /* maximum field growth */ int nrow; /* off-screen rows */ short nbuf; /* additional buffers */ short just; /* justification */ short page; /* page on form */ short index; /* into form -> field */ int pad; /* pad character */ chtype fore; /* foreground attribute */ chtype back; /* background attribute */ Field_Options opts; /* options */ struct fieldnode * snext; /* sorted order pointer */ struct fieldnode * sprev; /* sorted order pointer */ struct fieldnode * link; /* linked field chain */ struct formnode * form; /* containing form */ struct typenode * type; /* field type */ void * arg; /* argument for type */ FIELD_CELL * buf; /* field buffers */ void * usrptr; /* user pointer */ /* * The wide-character configuration requires extra information. Because * there are existing applications that manipulate the members of FIELD * directly, we cannot make the struct opaque. Offsets of members up to * this point are the same in the narrow- and wide-character configuration. * But note that the type of buf depends on the configuration, and is made * opaque for that reason. */ NCURSES_FIELD_INTERNALS } FIELD; /********* * FORM * *********/ typedef struct formnode { unsigned short status; /* flags */ short rows; /* size in rows */ short cols; /* size in cols */ int currow; /* current row in field window */ int curcol; /* current col in field window */ int toprow; /* in scrollable field window */ int begincol; /* in horiz. scrollable field */ short maxfield; /* number of fields */ short maxpage; /* number of pages */ short curpage; /* index into page */ Form_Options opts; /* options */ WINDOW * win; /* window */ WINDOW * sub; /* subwindow */ WINDOW * w; /* window for current field */ FIELD ** field; /* field [maxfield] */ FIELD * current; /* current field */ _PAGE * page; /* page [maxpage] */ void * usrptr; /* user pointer */ void (*forminit)(struct formnode *); void (*formterm)(struct formnode *); void (*fieldinit)(struct formnode *); void (*fieldterm)(struct formnode *); } FORM; /************** * FIELDTYPE * **************/ typedef struct typenode { unsigned short status; /* flags */ long ref; /* reference count */ struct typenode * left; /* ptr to operand for | */ struct typenode * right; /* ptr to operand for | */ void* (*makearg)(va_list *); /* make fieldtype arg */ void* (*copyarg)(const void *); /* copy fieldtype arg */ void (*freearg)(void *); /* free fieldtype arg */ #if NCURSES_INTEROP_FUNCS union { bool (*ofcheck)(FIELD *,const void *); /* field validation */ bool (*gfcheck)(FORM*,FIELD *,const void*); /* generic field validation */ } fieldcheck; union { bool (*occheck)(int,const void *); /* character validation */ bool (*gccheck)(int,FORM*, FIELD*,const void*); /* generic char validation */ } charcheck; union { bool (*onext)(FIELD *,const void *); /* enumerate next value */ bool (*gnext)(FORM*,FIELD*,const void*); /* generic enumerate next */ } enum_next; union { bool (*oprev)(FIELD *,const void *); /* enumerate prev value */ bool (*gprev)(FORM*,FIELD*,const void*); /* generic enumerate prev */ } enum_prev; void* (*genericarg)(void*); /* Alternate Arg method */ #else bool (*fcheck)(FIELD *,const void *); /* field validation */ bool (*ccheck)(int,const void *); /* character validation */ bool (*next)(FIELD *,const void *); /* enumerate next value */ bool (*prev)(FIELD *,const void *); /* enumerate prev value */ #endif } FIELDTYPE; typedef void (*Form_Hook)(FORM *); /*************************** * miscellaneous #defines * ***************************/ /* field justification */ #define NO_JUSTIFICATION (0) #define JUSTIFY_LEFT (1) #define JUSTIFY_CENTER (2) #define JUSTIFY_RIGHT (3) /* field options */ #define O_VISIBLE (0x0001U) #define O_ACTIVE (0x0002U) #define O_PUBLIC (0x0004U) #define O_EDIT (0x0008U) #define O_WRAP (0x0010U) #define O_BLANK (0x0020U) #define O_AUTOSKIP (0x0040U) #define O_NULLOK (0x0080U) #define O_PASSOK (0x0100U) #define O_STATIC (0x0200U) /* form options */ #define O_NL_OVERLOAD (0x0001U) #define O_BS_OVERLOAD (0x0002U) /* form driver commands */ #define REQ_NEXT_PAGE (KEY_MAX + 1) /* move to next page */ #define REQ_PREV_PAGE (KEY_MAX + 2) /* move to previous page */ #define REQ_FIRST_PAGE (KEY_MAX + 3) /* move to first page */ #define REQ_LAST_PAGE (KEY_MAX + 4) /* move to last page */ #define REQ_NEXT_FIELD (KEY_MAX + 5) /* move to next field */ #define REQ_PREV_FIELD (KEY_MAX + 6) /* move to previous field */ #define REQ_FIRST_FIELD (KEY_MAX + 7) /* move to first field */ #define REQ_LAST_FIELD (KEY_MAX + 8) /* move to last field */ #define REQ_SNEXT_FIELD (KEY_MAX + 9) /* move to sorted next field */ #define REQ_SPREV_FIELD (KEY_MAX + 10) /* move to sorted prev field */ #define REQ_SFIRST_FIELD (KEY_MAX + 11) /* move to sorted first field */ #define REQ_SLAST_FIELD (KEY_MAX + 12) /* move to sorted last field */ #define REQ_LEFT_FIELD (KEY_MAX + 13) /* move to left to field */ #define REQ_RIGHT_FIELD (KEY_MAX + 14) /* move to right to field */ #define REQ_UP_FIELD (KEY_MAX + 15) /* move to up to field */ #define REQ_DOWN_FIELD (KEY_MAX + 16) /* move to down to field */ #define REQ_NEXT_CHAR (KEY_MAX + 17) /* move to next char in field */ #define REQ_PREV_CHAR (KEY_MAX + 18) /* move to prev char in field */ #define REQ_NEXT_LINE (KEY_MAX + 19) /* move to next line in field */ #define REQ_PREV_LINE (KEY_MAX + 20) /* move to prev line in field */ #define REQ_NEXT_WORD (KEY_MAX + 21) /* move to next word in field */ #define REQ_PREV_WORD (KEY_MAX + 22) /* move to prev word in field */ #define REQ_BEG_FIELD (KEY_MAX + 23) /* move to first char in field */ #define REQ_END_FIELD (KEY_MAX + 24) /* move after last char in fld */ #define REQ_BEG_LINE (KEY_MAX + 25) /* move to beginning of line */ #define REQ_END_LINE (KEY_MAX + 26) /* move after last char in line */ #define REQ_LEFT_CHAR (KEY_MAX + 27) /* move left in field */ #define REQ_RIGHT_CHAR (KEY_MAX + 28) /* move right in field */ #define REQ_UP_CHAR (KEY_MAX + 29) /* move up in field */ #define REQ_DOWN_CHAR (KEY_MAX + 30) /* move down in field */ #define REQ_NEW_LINE (KEY_MAX + 31) /* insert/overlay new line */ #define REQ_INS_CHAR (KEY_MAX + 32) /* insert blank char at cursor */ #define REQ_INS_LINE (KEY_MAX + 33) /* insert blank line at cursor */ #define REQ_DEL_CHAR (KEY_MAX + 34) /* delete char at cursor */ #define REQ_DEL_PREV (KEY_MAX + 35) /* delete char before cursor */ #define REQ_DEL_LINE (KEY_MAX + 36) /* delete line at cursor */ #define REQ_DEL_WORD (KEY_MAX + 37) /* delete word at cursor */ #define REQ_CLR_EOL (KEY_MAX + 38) /* clear to end of line */ #define REQ_CLR_EOF (KEY_MAX + 39) /* clear to end of field */ #define REQ_CLR_FIELD (KEY_MAX + 40) /* clear entire field */ #define REQ_OVL_MODE (KEY_MAX + 41) /* begin overlay mode */ #define REQ_INS_MODE (KEY_MAX + 42) /* begin insert mode */ #define REQ_SCR_FLINE (KEY_MAX + 43) /* scroll field forward a line */ #define REQ_SCR_BLINE (KEY_MAX + 44) /* scroll field backward a line */ #define REQ_SCR_FPAGE (KEY_MAX + 45) /* scroll field forward a page */ #define REQ_SCR_BPAGE (KEY_MAX + 46) /* scroll field backward a page */ #define REQ_SCR_FHPAGE (KEY_MAX + 47) /* scroll field forward half page */ #define REQ_SCR_BHPAGE (KEY_MAX + 48) /* scroll field backward half page */ #define REQ_SCR_FCHAR (KEY_MAX + 49) /* horizontal scroll char */ #define REQ_SCR_BCHAR (KEY_MAX + 50) /* horizontal scroll char */ #define REQ_SCR_HFLINE (KEY_MAX + 51) /* horizontal scroll line */ #define REQ_SCR_HBLINE (KEY_MAX + 52) /* horizontal scroll line */ #define REQ_SCR_HFHALF (KEY_MAX + 53) /* horizontal scroll half line */ #define REQ_SCR_HBHALF (KEY_MAX + 54) /* horizontal scroll half line */ #define REQ_VALIDATION (KEY_MAX + 55) /* validate field */ #define REQ_NEXT_CHOICE (KEY_MAX + 56) /* display next field choice */ #define REQ_PREV_CHOICE (KEY_MAX + 57) /* display prev field choice */ #define MIN_FORM_COMMAND (KEY_MAX + 1) /* used by form_driver */ #define MAX_FORM_COMMAND (KEY_MAX + 57) /* used by form_driver */ #if defined(MAX_COMMAND) # if (MAX_FORM_COMMAND > MAX_COMMAND) # error Something is wrong -- MAX_FORM_COMMAND is greater than MAX_COMMAND # elif (MAX_COMMAND != (KEY_MAX + 128)) # error Something is wrong -- MAX_COMMAND is already inconsistently defined. # endif #else # define MAX_COMMAND (KEY_MAX + 128) #endif /************************* * standard field types * *************************/ extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_ALPHA; extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_ALNUM; extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_ENUM; extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_INTEGER; extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_NUMERIC; extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_REGEXP; /************************************ * built-in additional field types * * They are not defined in SVr4 * ************************************/ extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_IPV4; /* Internet IP Version 4 address */ /*********************** * FIELDTYPE routines * ***********************/ extern NCURSES_EXPORT(FIELDTYPE *) new_fieldtype ( bool (* const field_check)(FIELD *,const void *), bool (* const char_check)(int,const void *)); extern NCURSES_EXPORT(FIELDTYPE *) link_fieldtype( FIELDTYPE *, FIELDTYPE *); extern NCURSES_EXPORT(int) free_fieldtype (FIELDTYPE *); extern NCURSES_EXPORT(int) set_fieldtype_arg (FIELDTYPE *, void * (* const make_arg)(va_list *), void * (* const copy_arg)(const void *), void (* const free_arg)(void *)); extern NCURSES_EXPORT(int) set_fieldtype_choice (FIELDTYPE *, bool (* const next_choice)(FIELD *,const void *), bool (* const prev_choice)(FIELD *,const void *)); /******************* * FIELD routines * *******************/ extern NCURSES_EXPORT(FIELD *) new_field (int,int,int,int,int,int); extern NCURSES_EXPORT(FIELD *) dup_field (FIELD *,int,int); extern NCURSES_EXPORT(FIELD *) link_field (FIELD *,int,int); extern NCURSES_EXPORT(int) free_field (FIELD *); extern NCURSES_EXPORT(int) field_info (const FIELD *,int *,int *,int *,int *,int *,int *); extern NCURSES_EXPORT(int) dynamic_field_info (const FIELD *,int *,int *,int *); extern NCURSES_EXPORT(int) set_max_field ( FIELD *,int); extern NCURSES_EXPORT(int) move_field (FIELD *,int,int); extern NCURSES_EXPORT(int) set_field_type (FIELD *,FIELDTYPE *,...); extern NCURSES_EXPORT(int) set_new_page (FIELD *,bool); extern NCURSES_EXPORT(int) set_field_just (FIELD *,int); extern NCURSES_EXPORT(int) field_just (const FIELD *); extern NCURSES_EXPORT(int) set_field_fore (FIELD *,chtype); extern NCURSES_EXPORT(int) set_field_back (FIELD *,chtype); extern NCURSES_EXPORT(int) set_field_pad (FIELD *,int); extern NCURSES_EXPORT(int) field_pad (const FIELD *); extern NCURSES_EXPORT(int) set_field_buffer (FIELD *,int,const char *); extern NCURSES_EXPORT(int) set_field_status (FIELD *,bool); extern NCURSES_EXPORT(int) set_field_userptr (FIELD *, void *); extern NCURSES_EXPORT(int) set_field_opts (FIELD *,Field_Options); extern NCURSES_EXPORT(int) field_opts_on (FIELD *,Field_Options); extern NCURSES_EXPORT(int) field_opts_off (FIELD *,Field_Options); extern NCURSES_EXPORT(chtype) field_fore (const FIELD *); extern NCURSES_EXPORT(chtype) field_back (const FIELD *); extern NCURSES_EXPORT(bool) new_page (const FIELD *); extern NCURSES_EXPORT(bool) field_status (const FIELD *); extern NCURSES_EXPORT(void *) field_arg (const FIELD *); extern NCURSES_EXPORT(void *) field_userptr (const FIELD *); extern NCURSES_EXPORT(FIELDTYPE *) field_type (const FIELD *); extern NCURSES_EXPORT(char *) field_buffer (const FIELD *,int); extern NCURSES_EXPORT(Field_Options) field_opts (const FIELD *); /****************** * FORM routines * ******************/ extern NCURSES_EXPORT(FORM *) new_form (FIELD **); extern NCURSES_EXPORT(FIELD **) form_fields (const FORM *); extern NCURSES_EXPORT(FIELD *) current_field (const FORM *); extern NCURSES_EXPORT(WINDOW *) form_win (const FORM *); extern NCURSES_EXPORT(WINDOW *) form_sub (const FORM *); extern NCURSES_EXPORT(Form_Hook) form_init (const FORM *); extern NCURSES_EXPORT(Form_Hook) form_term (const FORM *); extern NCURSES_EXPORT(Form_Hook) field_init (const FORM *); extern NCURSES_EXPORT(Form_Hook) field_term (const FORM *); extern NCURSES_EXPORT(int) free_form (FORM *); extern NCURSES_EXPORT(int) set_form_fields (FORM *,FIELD **); extern NCURSES_EXPORT(int) field_count (const FORM *); extern NCURSES_EXPORT(int) set_form_win (FORM *,WINDOW *); extern NCURSES_EXPORT(int) set_form_sub (FORM *,WINDOW *); extern NCURSES_EXPORT(int) set_current_field (FORM *,FIELD *); extern NCURSES_EXPORT(int) field_index (const FIELD *); extern NCURSES_EXPORT(int) set_form_page (FORM *,int); extern NCURSES_EXPORT(int) form_page (const FORM *); extern NCURSES_EXPORT(int) scale_form (const FORM *,int *,int *); extern NCURSES_EXPORT(int) set_form_init (FORM *,Form_Hook); extern NCURSES_EXPORT(int) set_form_term (FORM *,Form_Hook); extern NCURSES_EXPORT(int) set_field_init (FORM *,Form_Hook); extern NCURSES_EXPORT(int) set_field_term (FORM *,Form_Hook); extern NCURSES_EXPORT(int) post_form (FORM *); extern NCURSES_EXPORT(int) unpost_form (FORM *); extern NCURSES_EXPORT(int) pos_form_cursor (FORM *); extern NCURSES_EXPORT(int) form_driver (FORM *,int); extern NCURSES_EXPORT(int) set_form_userptr (FORM *,void *); extern NCURSES_EXPORT(int) set_form_opts (FORM *,Form_Options); extern NCURSES_EXPORT(int) form_opts_on (FORM *,Form_Options); extern NCURSES_EXPORT(int) form_opts_off (FORM *,Form_Options); extern NCURSES_EXPORT(int) form_request_by_name (const char *); extern NCURSES_EXPORT(const char *) form_request_name (int); extern NCURSES_EXPORT(void *) form_userptr (const FORM *); extern NCURSES_EXPORT(Form_Options) form_opts (const FORM *); extern NCURSES_EXPORT(bool) data_ahead (const FORM *); extern NCURSES_EXPORT(bool) data_behind (const FORM *); #if NCURSES_SP_FUNCS extern NCURSES_EXPORT(FORM *) NCURSES_SP_NAME(new_form) (SCREEN*, FIELD **); #endif #ifdef __cplusplus } #endif #endif /* FORM_H */
Save