summaryrefslogtreecommitdiffstats
path: root/lib/libcurses/tinfo (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Don't return ERR if resize didn't change sizemillert2021-03-101-3/+6
| | | | | | | This is a backport of the ncurses 5.9 20120707 patch. Previously, getch() would return ERR if SIGWINCH was received but the window didn't actually change size. This can happen, for example, when the xterm font is changed. OK tb@
* Do not cast (signed char) CANCELLED_BOOLEAN to (char) for comparisonderaadt2018-06-281-3/+3
| | | | | | | | against (signed char) variable. Modern "genius" compilers simply delete the code on unsigned char architectures, amazed they feel lattitude to convert undefined local behaviour into much larger scope undefined behaviour (glad to have faster but incorrect libcurses..) ok millert
* Instead of using our own custom BDB terminfo databases, use the ncursesnicm2015-12-032-275/+2
| | | | | | | files in /usr/share/terminfo/*. This removes a large difference from upstream ncurses and other systems. ok millert
* Disable the USE_OLD_TTY hack that re-encoded termios Bnnn speedsnaddy2013-12-101-4/+4
| | | | | | | | | as sgtty Bnnn speeds. This means ospeed has to grow from short to int to hold all possible values. Bump major version. While there, also fix a bug in _nc_baudrate(). ok nicm@, millert@, deraadt@
* Restore an if that got lost in the update.nicm2010-01-141-7/+9
| | | | Fixes problems with editors/joe reported by benoit@.
* Update to ncurses 5.7, with local changes reapplied.nicm2010-01-1255-2543/+5547
| | | | | | | | | This is around eight years worth of changes (previously we were around ncurses 5.2), too many to list - many bug fixes and also a few new functions. A major bump for libcurses, libpanel, libform and libmenu. ok deraadt
* a few leftovers from yesterday's SCCS/RCS-ID removal;schwarze2009-10-281-5/+1
| | | | | survived a full make build on i386; "sure" deraadt@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-4/+0
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* terminfo supports the use= capability (tc= in termcap), to allow onenicm2009-10-181-18/+73
| | | | | | | | | | | | | | | | | | | | description to reference another. If this is used, any capabilities in the parent terminal description should override those pulled in by use=. When cap_mkdb is building terminfo.db, it concatenates any use= references together so each description is self-contained. However, the ncurses terminfo implementation doesn't expect this - it assumes it will have to resolve use= itself, and picks the last entry in the description created by cap_mkdb rather than the first. read_bsd_terminfo.c already makes some transformations to make ncurses happy with the format in the database. So, extend this to trim out duplicate entries, leaving only the first. (Interestingly, ncurses already has code to correctly handle merged tc= capabilities in termcap.db (used if terminfo.db is missing).) "go ahead" deraadt@
* Change cap_mkdb and curses to be a better about reformatting terminfo entriesnicm2009-08-281-9/+18
| | | | | | | | | | | into the cap database format and back: rather than replacing all colons with commas, only touch real separators (skip those with a leading \ or ^) and replace an unadorned colon with a literal "\072". Fixes problems with quite a few caps including acsc in "screen" (:s instead of ,s) and setab/initc in "xterm-256color" (wrongly concatenated together). ok millert
* More read/write result checking fixes to avoid unsigned comparisons vskrw2008-01-291-2/+2
| | | | | | -1. ok henning@ beck@ ray@
* safer snprintf construct with more paranoid length calculationpvalchev2007-06-021-3/+3
| | | | ok millert
* ptr->term_names can point into ptr->str_table, so don;t free that one.otto2007-04-161-2/+1
| | | | | fixes PR #5447. Fix verifed to be equal to the ifndef NO_LEAK part of current ncurses.
* remove some bogus *p tests from charles longeautedu2007-03-201-2/+2
| | | | ok deraadt millert
* Check strlen(buf) to be > 0 before accessing buf[strlen(buf)-1].moritz2006-10-241-2/+5
| | | | OK ray@ cloder@
* fgets(3) returns NULL on error, not 0. No functional change, but it makescloder2006-10-102-4/+4
| | | | | the code easier to read. OK deraadt
* more getopt() EOF crud; adobriyan@gmailderaadt2006-03-121-2/+2
|
* Convert return value of cgetent(3) to what the curses routines expect.millert2005-07-191-2/+3
| | | | | Fixes a problem where an unknown terminal type would be reported as "database not found". Noticed by grunk@
* fix out of bounds access. found by david@ running with malloc guards andtedu2003-10-151-3/+3
| | | | randomization. ok millert@
* Sync with share/misc/license.template and add missing DARPA creditmillert2003-06-171-9/+9
| | | | where applicable.
* mop up some more 3/4 license issuesderaadt2003-06-041-10/+2
|
* Use an ISC-tyle license for all my code; it is simpler and more permissive.millert2003-06-031-23/+12
|
* Use strlcpy() / strlcat() throughout.millert2003-03-1817-61/+76
|
* make rcsid const to pass gcc -Wallmillert2003-03-181-2/+2
|
* Deal with snprintf returning -1millert2003-03-171-3/+3
|
* use snprintf throughoutmillert2003-03-1711-37/+38
|
* duplicate words and spelling fixes in commentsdavid2003-03-101-2/+2
| | | | ok miod@
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-3/+3
|
* Make _nc_get_token() take a "silent" argument and only warn if itmillert2001-02-223-28/+28
| | | | | is not set. Propagate "silent" flag in _nc_parse_entry() to _nc_get_token(). Set the silent flag when reading termcap files, including $TERMCAP.
* Update to ncurses-5.2-20010210:millert2001-02-221-78/+89
| | | | | | | | | | | | | | o remove macro callPutChar() from tty_update.c, since this is no longer needed (reported by Philippe Blain). o add a null-pointer check in tic.c to handle the case when the input file is really empty. Modify the next_char() function in comp_scan.c to allow arbitrarily long lines, and incidentally supply a newline to files that do not end in a newline. These changes improve tic's recovery from attempts to read binary files, e.g., its output from the terminfo database (reported by Bernhard Rosenkraenzer). o revert change to c++/demo.cc from 20001209, which changed definition of main() apparently to accommodate cygwin linker, but broke the demo program.
* #ifdef out the "older tic versions may treat the description fieldmillert2001-02-211-0/+2
| | | | | | as an alias" warning since it hits people with $TERMCAP set when there is no terminfo file present. A better fix would be to make _nc_get_token() take a quiet flag.
* Missed changes in ncurses-5.2-20010114 commitmillert2001-01-221-60/+66
|
* Update to ncurses-5.2-20010114millert2001-01-2244-988/+1123
|
* update to ncurses 5.2millert2000-10-224-45/+46
|
* Don't attempt to free uninitialized variable; guenther@gac.edumillert2000-10-201-1/+1
|
* Add check for NUL home that got missed in the last mergemillert2000-10-091-2/+2
|
* update to ncurses-5.1-20001007millert2000-10-0819-855/+1365
|
* Don't call cgetset() on $TERMCAP if setugid. The logic has been reworkedmillert2000-10-021-18/+20
| | | | | a bit to make it clear what is supposed to happen. Also fix some policy wrt setugid in code we don't actually compile for consistency's sake.
* Don't look in ~/.terminfo if setugid. This is consistent with themillert2000-10-021-2/+2
| | | | behavior of checking ~/.terminfo.db and ~/.termcap.db
* $HOME paranoia: never use getenv("HOME") w/o checking for NULL and non-zeromillert2000-08-023-8/+8
|
* Update to ncurses-5.1-20000722millert2000-07-241-10/+10
|
* ncurses 5.1millert2000-07-102-16/+19
|
* ncurses-5.0-20000617millert2000-06-196-59/+130
|
* Check $TERMCAP for a termcap entry even when we are using the system'smillert2000-04-141-7/+14
| | | | getcap(3) routines.
* Update to ncurses-5.0-20000401:millert2000-04-042-12/+10
| | | | | | o change unctrl() to render C1 characters (128-159) as ~@, ~A, etc. o trace() function is provided only if TRACE is defined, e.g., in the debug library. Modify related calls to _tracechar() to use unctrl() instead.
* Update to ncurses-5.0-20000325millert2000-03-267-171/+206
|
* update to ncurses-5.0-20000311millert2000-03-1310-355/+358
|
* Update to ncurses-5.0-20000304millert2000-03-1012-37/+38
|
* ncurses-5.0-20000205millert2000-02-061-4/+2
|
* Update to ncurses-5.0-20000115:millert2000-01-165-869/+837
| | | | | | | | | | | | | + additional fixes for non-bce terminals (handling of delete_character) to work when assume_default_colors() is not specified. + modify warning message from _nc_parse_entry() regarding extended capability names to print only if tic/infocmp/toe have the -v flag set, and not at all in ordinary user applications. Otherwise, this warning would be shown for screen's extended capabilities in programs that use the termcap interface. + modify use of _nc_tracing from programs such as tic so their debug level is not in the same range as values set by trace() function. + small panel header cleanup (patch by Juergen Pfeifer).