| Age | Commit message (Collapse) | Author |
|
OK: core@, jdc@
|
|
|
|
|
|
bytes.
This fixes the problem that enabling the titeInhibit Xresource of xterm has
no effect, because xterm exports a TERMCAP string without ti/te sequences
but doesn't remove the ZZ capability because it doesn't know about it and
termcap(3) ignores the stringe because of the ZZ.
Discussed with and OK'ed by blymn@.
|
|
|
|
|
|
elsewhere).
|
|
Patches provided by Joel Baker in PR 22280, verified by myself.
|
|
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
|
|
|
|
|
|
|
|
|
|
|
|
Re-write t_agetstr() so that it does not use realloc so userland
programs don't break. We now use an internal buffer to keep track
of the memory we allocate. This changes the api of t_agetstr() to
take 2 fewer arguments, but there are not many programs that use it.
Please note that this does not change binary compatibility with the
previous t_agetstr() since the usage was:
char *area, *p;
*area = NULL;
t_agetstr(ti, "ic", &area, &p);
...
free(area);
Since we don't touch the arguments and free(NULL) is a no-op, nothing
breaks.
Since we don't break binary compatibility there is no reason to bump
the library's major number, but since we change t_agetstr() I'll bump
the minor number for good measure.
|
|
|
|
* Added new function t_setinfo to allow setting the termcap info when
termcap entry found.
|
|
* Add -I. to CPPFLAGS
* Added new function t_agetstr which dynamically allocates area buffer.
|
|
|
|
entry since the "new" interface hid this information away.
|
|
This is in line with the Single UNIX Spec, Solaris, Linux, FreeBSD, ...
|
|
of the requested capability will be returned in the limit parameter.
|
|
size_t not int)
|
|
termcap entries simultaneously and lifts the 1024 byte limit on the termcap
entry. The original termcap api is unchanged but also no longer has
the 1024 byte limit if the termcap functions are used.
|
|
|
|
so we shouldn't override it with versions in the manpages. Wheee!
|
|
|
|
|
|
|