ncursesw-morphos/include/ncurses_defs

237 lines
5.3 KiB
Plaintext
Raw Normal View History

ncurses 6.0 - patch 20170812 + improve description of -R option in infocmp manual page (report by Stephane Chazelas). + add reset_color_pairs() function. + add user_caps.5 manual page to document the terminfo extensions used by ncurses. + improve build scripts, using SIGQUIT vs SIGTRAP; add other configure script fixes from work on xterm, lynx and tack. + modify install-rule for ncurses-examples to put the data files in /usr/share/ncurses-examples + improve tracemunch, by changing address-parameters of add_wch(), color_content() and pair_content() to dummy parameters. + minor optimization to _nc_change_pair, to return quickly when the current screen is marked for clearing. + in-progress changes to improve performance of test/picsmap.c for loading image files. + modify allocation for SCREEN's color-pair table to start small, grow on demand up to the existing limit. + add "RGB" extension capability for direct-color support, use this to improve color_content(). + improve picsmap test-program: + if no palette file is needed, attempt to load one based on $TERM, checking first in the current directory, then by adding ".dat" suffix, and finally in the data-directory, e.g., /usr/share/ncurses-examples + add "-l" option for logging + add "-d" option for debugging + add "-s" option for stepping automatically through list of images, with time delay. + use tsearch to improve time for loading color table for images. + update config.guess, config.sub from http://git.savannah.gnu.org/cgit/config.git
2017-08-13 08:55:26 +08:00
# $Id: ncurses_defs,v 1.74 2017/08/07 23:28:49 tom Exp $
2000-10-21 12:42:11 +08:00
##############################################################################
# Copyright (c) 2000-2016,2017 Free Software Foundation, Inc. #
2000-10-21 12:42:11 +08:00
# #
# 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. #
##############################################################################
#
# See "MKncurses_def.sh" for an explanation.
#
# (hint: don't try to define NDEBUG ;-)
BROKEN_LINKER
BSD_TPUTS
CGETENT_CONST /* nothing */
2000-10-21 12:42:11 +08:00
CPP_HAS_PARAM_INIT
2002-10-13 11:35:53 +08:00
CURSES_ACS_ARRAY acs_map
CURSES_WACS_ARRAY _nc_wacs
2000-10-21 12:42:11 +08:00
DECL_ERRNO
ETIP_NEEDS_MATH_H
GCC_NORETURN /* nothing */
GCC_UNUSED /* nothing */
HAVE_ALLOC_PAIR
HAVE_ASSUME_DEFAULT_COLORS
2000-10-21 12:42:11 +08:00
HAVE_BIG_CORE
HAVE_BSD_CGETENT
2004-02-09 10:15:26 +08:00
HAVE_BSD_SIGNAL_H
ncurses 6.0 - patch 20170401 + minor fixes for vt100+4bsd, e.g., delay in sgr for consistency -TD + add smso for env230, to match sgr -TD + remove p7/protect from sgr in fbterm -TD + drop setf/setb from fbterm; setaf/setab are enough -TD + make xterm-pcolor sgr consistent with other capabilities -TD + add rmxx/smxx ECMA-48 strikeout extension to tmux and xterm-basic (discussion with Nicholas Marriott) + add test-programs sp_tinfo and extended_color + modify no-leaks code for lib_cur_term.c to account for the tgetent() cache. + modify setupterm() to save original tty-modes so that erasechar() works as expected. Also modify _nc_setupscreen() to avoid redundant calls to get original tty-modes. + modify set_curterm() to update ttytype[] data used by longname(). + modify wattr_set() and wattr_get() to return ERR if win-parameter is null, as documented. + improve cast used for null-pointer checks in header macros, to reduce compiler warnings. + modify several functions, using the reserved "opts" parameter to pass color- and pair-values larger than 16-bits: + getcchar(), setcchar(), slk_attr_set(), vid_puts(), wattr_get(), wattr_set(), wchgat(), wcolor_set(). + Other functions call these with the corresponding altered behavior, including chgat(), mvchgat(), mvwchgat(), slk_color_on(), slk_color_off(), vid_attr(). + add new functions for manipulating color- and pair-values larger than 16-bits. These are extended_color_content(), extended_pair_content(), extended_slk_color(), init_extended_color(), init_extended_pair(), and the corresponding sp-funcs.
2017-04-02 09:27:53 +08:00
HAVE_BSD_STRING_H
2004-02-09 10:15:26 +08:00
HAVE_BTOWC
2000-10-21 12:42:11 +08:00
HAVE_BUILTIN_H
HAVE_CHGAT 1
HAVE_COLOR_SET 1
2000-10-21 12:42:11 +08:00
HAVE_DIRENT_H
HAVE_ERRNO
HAVE_FCNTL_H
2006-12-18 12:32:42 +08:00
HAVE_FILTER 1
2000-10-21 12:42:11 +08:00
HAVE_FORM_H
2006-12-18 12:32:42 +08:00
HAVE_GETBEGX 1
HAVE_GETCURX 1
2000-10-21 12:42:11 +08:00
HAVE_GETCWD
HAVE_GETEGID
HAVE_GETEUID
2006-12-18 12:32:42 +08:00
HAVE_GETMAXX 1
2002-10-13 11:35:53 +08:00
HAVE_GETNSTR
2000-10-21 12:42:11 +08:00
HAVE_GETOPT_H
HAVE_GETPARX 1
2000-10-21 12:42:11 +08:00
HAVE_GETTIMEOFDAY
HAVE_GETTTYNAM
2006-12-18 12:32:42 +08:00
HAVE_GETWIN 1
2005-10-10 02:41:57 +08:00
HAVE_GPM_H
2000-10-21 12:42:11 +08:00
HAVE_GPP_BUILTIN_H
HAVE_GXX_BUILTIN_H
HAVE_HAS_KEY
ncurses 6.0 - patch 20170401 + minor fixes for vt100+4bsd, e.g., delay in sgr for consistency -TD + add smso for env230, to match sgr -TD + remove p7/protect from sgr in fbterm -TD + drop setf/setb from fbterm; setaf/setab are enough -TD + make xterm-pcolor sgr consistent with other capabilities -TD + add rmxx/smxx ECMA-48 strikeout extension to tmux and xterm-basic (discussion with Nicholas Marriott) + add test-programs sp_tinfo and extended_color + modify no-leaks code for lib_cur_term.c to account for the tgetent() cache. + modify setupterm() to save original tty-modes so that erasechar() works as expected. Also modify _nc_setupscreen() to avoid redundant calls to get original tty-modes. + modify set_curterm() to update ttytype[] data used by longname(). + modify wattr_set() and wattr_get() to return ERR if win-parameter is null, as documented. + improve cast used for null-pointer checks in header macros, to reduce compiler warnings. + modify several functions, using the reserved "opts" parameter to pass color- and pair-values larger than 16-bits: + getcchar(), setcchar(), slk_attr_set(), vid_puts(), wattr_get(), wattr_set(), wchgat(), wcolor_set(). + Other functions call these with the corresponding altered behavior, including chgat(), mvchgat(), mvwchgat(), slk_color_on(), slk_color_off(), vid_attr(). + add new functions for manipulating color- and pair-values larger than 16-bits. These are extended_color_content(), extended_pair_content(), extended_slk_color(), init_extended_color(), init_extended_pair(), and the corresponding sp-funcs.
2017-04-02 09:27:53 +08:00
HAVE_INIT_EXTENDED_COLOR
HAVE_INTTYPES_H
2007-04-08 09:10:28 +08:00
HAVE_IOSTREAM
2000-10-21 12:42:11 +08:00
HAVE_ISASCII
HAVE_ISSETUGID
2005-10-10 02:41:57 +08:00
HAVE_LANGINFO_CODESET
2004-02-09 10:15:26 +08:00
HAVE_LIBC_H
2000-10-21 12:42:11 +08:00
HAVE_LIBDBMALLOC
HAVE_LIBDMALLOC
HAVE_LIBFORM
HAVE_LIBGPM
HAVE_LIBMENU
2005-10-10 02:41:57 +08:00
HAVE_LIBMPATROL
2000-10-21 12:42:11 +08:00
HAVE_LIBPANEL
HAVE_LIMITS_H
HAVE_LINK
HAVE_LOCALE_H
HAVE_LONG_FILE_NAMES
HAVE_MATH_H
2004-02-09 10:15:26 +08:00
HAVE_MBLEN
HAVE_MBRLEN
HAVE_MBRTOWC
HAVE_MBSRTOWCS
HAVE_MBSTOWCS
2004-02-09 10:15:26 +08:00
HAVE_MBTOWC
2000-10-21 12:42:11 +08:00
HAVE_MENU_H
HAVE_MKSTEMP
2006-12-18 12:32:42 +08:00
HAVE_MVVLINE 1
HAVE_MVWVLINE 1
2000-10-21 12:42:11 +08:00
HAVE_NANOSLEEP
HAVE_NC_ALLOC_H
HAVE_PANEL_H
HAVE_POLL
HAVE_POLL_H
2002-10-13 11:35:53 +08:00
HAVE_PURIFY
HAVE_PUTENV
2004-02-09 10:15:26 +08:00
HAVE_PUTWC
2006-12-18 12:32:42 +08:00
HAVE_PUTWIN 1
2000-10-21 12:42:11 +08:00
HAVE_REGEXPR_H_FUNCS
HAVE_REGEXP_H_FUNCS
HAVE_REGEX_H_FUNCS
HAVE_REMOVE
HAVE_RESIZETERM
2006-12-18 12:32:42 +08:00
HAVE_RESIZE_TERM
HAVE_RIPOFFLINE 1
HAVE_SCR_DUMP 1
2000-10-21 12:42:11 +08:00
HAVE_SELECT
HAVE_SETBUF
HAVE_SETBUFFER
HAVE_SETENV
2006-12-18 12:32:42 +08:00
HAVE_SETUPTERM 1
2000-10-21 12:42:11 +08:00
HAVE_SETVBUF
HAVE_SGTTY_H
2000-10-21 12:42:11 +08:00
HAVE_SIGACTION
HAVE_SIGVEC
HAVE_SIZECHANGE
2004-02-09 10:15:26 +08:00
HAVE_SLK_COLOR
2006-12-18 12:32:42 +08:00
HAVE_SLK_INIT 1
HAVE_SNPRINTF
HAVE_STDINT_H
HAVE_STRDUP
HAVE_STRLCAT
HAVE_STRLCPY
2000-10-21 12:42:11 +08:00
HAVE_STRSTR
HAVE_SYMLINK
HAVE_SYS_BSDTYPES_H
HAVE_SYS_IOCTL_H
HAVE_SYS_PARAM_H
HAVE_SYS_POLL_H
HAVE_SYS_SELECT_H
HAVE_SYS_TERMIO_H
HAVE_SYS_TIMES_H
HAVE_SYS_TIME_H
HAVE_SYS_TIME_SELECT
HAVE_TCGETATTR
HAVE_TCGETPGRP
ncurses 6.0 - patch 20170812 + improve description of -R option in infocmp manual page (report by Stephane Chazelas). + add reset_color_pairs() function. + add user_caps.5 manual page to document the terminfo extensions used by ncurses. + improve build scripts, using SIGQUIT vs SIGTRAP; add other configure script fixes from work on xterm, lynx and tack. + modify install-rule for ncurses-examples to put the data files in /usr/share/ncurses-examples + improve tracemunch, by changing address-parameters of add_wch(), color_content() and pair_content() to dummy parameters. + minor optimization to _nc_change_pair, to return quickly when the current screen is marked for clearing. + in-progress changes to improve performance of test/picsmap.c for loading image files. + modify allocation for SCREEN's color-pair table to start small, grow on demand up to the existing limit. + add "RGB" extension capability for direct-color support, use this to improve color_content(). + improve picsmap test-program: + if no palette file is needed, attempt to load one based on $TERM, checking first in the current directory, then by adding ".dat" suffix, and finally in the data-directory, e.g., /usr/share/ncurses-examples + add "-l" option for logging + add "-d" option for debugging + add "-s" option for stepping automatically through list of images, with time delay. + use tsearch to improve time for loading color table for images. + update config.guess, config.sub from http://git.savannah.gnu.org/cgit/config.git
2017-08-13 08:55:26 +08:00
HAVE_TDESTROY
2000-10-21 12:42:11 +08:00
HAVE_TELL
2006-12-18 12:32:42 +08:00
HAVE_TERMATTRS 1
2000-10-21 12:42:11 +08:00
HAVE_TERMIOS_H
HAVE_TERMIO_H
2006-12-18 12:32:42 +08:00
HAVE_TERMNAME 1
HAVE_TERM_ENTRY_H 1
HAVE_TERM_H 1
2006-12-18 12:32:42 +08:00
HAVE_TGETENT 1
HAVE_TIGETNUM 1
HAVE_TIGETSTR 1
2000-10-21 12:42:11 +08:00
HAVE_TIMES
ncurses 6.0 - patch 20170401 + minor fixes for vt100+4bsd, e.g., delay in sgr for consistency -TD + add smso for env230, to match sgr -TD + remove p7/protect from sgr in fbterm -TD + drop setf/setb from fbterm; setaf/setab are enough -TD + make xterm-pcolor sgr consistent with other capabilities -TD + add rmxx/smxx ECMA-48 strikeout extension to tmux and xterm-basic (discussion with Nicholas Marriott) + add test-programs sp_tinfo and extended_color + modify no-leaks code for lib_cur_term.c to account for the tgetent() cache. + modify setupterm() to save original tty-modes so that erasechar() works as expected. Also modify _nc_setupscreen() to avoid redundant calls to get original tty-modes. + modify set_curterm() to update ttytype[] data used by longname(). + modify wattr_set() and wattr_get() to return ERR if win-parameter is null, as documented. + improve cast used for null-pointer checks in header macros, to reduce compiler warnings. + modify several functions, using the reserved "opts" parameter to pass color- and pair-values larger than 16-bits: + getcchar(), setcchar(), slk_attr_set(), vid_puts(), wattr_get(), wattr_set(), wchgat(), wcolor_set(). + Other functions call these with the corresponding altered behavior, including chgat(), mvchgat(), mvwchgat(), slk_color_on(), slk_color_off(), vid_attr(). + add new functions for manipulating color- and pair-values larger than 16-bits. These are extended_color_content(), extended_pair_content(), extended_slk_color(), init_extended_color(), init_extended_pair(), and the corresponding sp-funcs.
2017-04-02 09:27:53 +08:00
HAVE_TPUTS_SP
ncurses 6.0 - patch 20170812 + improve description of -R option in infocmp manual page (report by Stephane Chazelas). + add reset_color_pairs() function. + add user_caps.5 manual page to document the terminfo extensions used by ncurses. + improve build scripts, using SIGQUIT vs SIGTRAP; add other configure script fixes from work on xterm, lynx and tack. + modify install-rule for ncurses-examples to put the data files in /usr/share/ncurses-examples + improve tracemunch, by changing address-parameters of add_wch(), color_content() and pair_content() to dummy parameters. + minor optimization to _nc_change_pair, to return quickly when the current screen is marked for clearing. + in-progress changes to improve performance of test/picsmap.c for loading image files. + modify allocation for SCREEN's color-pair table to start small, grow on demand up to the existing limit. + add "RGB" extension capability for direct-color support, use this to improve color_content(). + improve picsmap test-program: + if no palette file is needed, attempt to load one based on $TERM, checking first in the current directory, then by adding ".dat" suffix, and finally in the data-directory, e.g., /usr/share/ncurses-examples + add "-l" option for logging + add "-d" option for debugging + add "-s" option for stepping automatically through list of images, with time delay. + use tsearch to improve time for loading color table for images. + update config.guess, config.sub from http://git.savannah.gnu.org/cgit/config.git
2017-08-13 08:55:26 +08:00
HAVE_TSEARCH
2000-10-21 12:42:11 +08:00
HAVE_TTYENT_H
2006-12-18 12:32:42 +08:00
HAVE_TYPEAHEAD 1
2000-10-21 12:42:11 +08:00
HAVE_TYPEINFO
2002-10-13 11:35:53 +08:00
HAVE_TYPE_ATTR_T
2000-10-21 12:42:11 +08:00
HAVE_TYPE_SIGACTION
HAVE_UNCTRL_H 1
2000-10-21 12:42:11 +08:00
HAVE_UNISTD_H
HAVE_UNLINK
HAVE_USE_DEFAULT_COLORS
HAVE_USE_ENV 1
HAVE_USE_EXTENDED_NAMES
HAVE_USE_SCREEN
HAVE_USE_WINDOW
2000-10-21 12:42:11 +08:00
HAVE_VFSCANF
HAVE_VIDPUTS 1
HAVE_VID_PUTS 1
2000-10-21 12:42:11 +08:00
HAVE_VSNPRINTF
HAVE_VSSCANF
HAVE_WCSRTOMBS
HAVE_WCSTOMBS
2004-02-09 10:15:26 +08:00
HAVE_WCTOB
HAVE_WCTOMB
2005-10-10 02:41:57 +08:00
HAVE_WCTYPE_H
2006-12-18 12:32:42 +08:00
HAVE_WINSSTR 1
2000-10-21 12:42:11 +08:00
HAVE_WORKING_POLL
HAVE_WRESIZE
HAVE_WSYNCDOWN 1
2002-10-13 11:35:53 +08:00
HAVE__DOSCAN
HAVE__TRACEF
2000-10-21 12:42:11 +08:00
MIXEDCASE_FILENAMES
NCURSES_CHAR_EQ
2000-10-21 12:42:11 +08:00
NCURSES_EXPANDED
2005-10-10 02:41:57 +08:00
NCURSES_EXT_COLORS
2000-10-21 12:42:11 +08:00
NCURSES_EXT_FUNCS
NCURSES_EXT_PUTWIN
2000-10-21 12:42:11 +08:00
NCURSES_NO_PADDING
NCURSES_OSPEED_COMPAT
2002-10-13 11:35:53 +08:00
NCURSES_PATHSEP ':'
NCURSES_WIDECHAR
2000-10-21 12:42:11 +08:00
NEED_PTEM_H
NO_LEAKS
PURE_TERMINFO
STDC_HEADERS
SVR4_ACTION
SVR4_TERMIO
SYSTEM_NAME "unknown"
TERMINFO "none"
2002-10-13 11:35:53 +08:00
TERMPATH "none"
TIME_WITH_SYS_TIME
2000-10-21 12:42:11 +08:00
TYPEOF_CHTYPE
USE_COLORFGBG
USE_GETCAP
USE_GETCAP_CACHE
USE_HARD_TABS
2006-12-18 12:32:42 +08:00
USE_HASHED_DB
2000-10-21 12:42:11 +08:00
USE_HASHMAP
2004-02-09 10:15:26 +08:00
USE_HOME_TERMINFO
2000-10-21 12:42:11 +08:00
USE_LINKS
USE_MY_MEMMOVE
USE_OK_BCOPY
USE_PTHREADS_EINTR
2000-10-21 12:42:11 +08:00
USE_RCS_IDS
USE_REENTRANT
2000-10-21 12:42:11 +08:00
USE_SAFE_SPRINTF
USE_SCROLL_HINTS
USE_SIGWINCH
USE_STRING_HACKS
2000-10-21 12:42:11 +08:00
USE_SYMLINKS
2004-02-09 10:15:26 +08:00
USE_SYSMOUSE
USE_WEAK_SYMBOLS
2000-10-21 12:42:11 +08:00
USE_WIDEC_SUPPORT
USE_XMC_SUPPORT