Add some options to the package.
Changes:
* add extended shift- and control-modifier cursor keys to "xterm+pcfkeys"
terminfo entry to correspond to ncurses 20050430 patch.
* fix a rare case where text would be written with the wrong colors because
output of scrolled text would reset the colors and the new text would be
written with the same colors
* add environment variables $XTERM_SHELL and $XTERM_VERSION
* corrected workaround for background color of menubar, which gave a
too-broad expression, coloring the background of the VT100 widget unless
overridden by another resource setting.
* correct an error in the logic which decides when sched_yield() is run; it
would occasionally hang when contending with other pseudo-terminal
applications such as screen
* improve resource files to show how the menubar and popup menus can be
colored
* modify parsing of OSC (and SOS, etc), strings so their contents are not
interpreted as UTF-8. This allows non-ASCII title strings to be set,
provided that the window manager complies (report by Thomas Wolff).
* improved some of the built-in line-drawing glyphs.
* correct color of "box" character drawn for line-drawing glyph 1 (report
by Nicolas George).
* improve behavior when switching to UTF-8 mode after startup so xterm will
check if the current fonts are already wide (ISO10646-1). If they are not,
xterm will use the utf8Fonts subresource to load appropriate fonts
* modify logic for setting title-string so it applies to the current widget
rather than the vt100 widget.
* correct computation of width for wide characters with the invisible
attribute
* modify interaction between +u8 and locale resource to allow the
command-line option to override the resource
* ignore error in the I/O initialization that tries to set the tty to 7-bit
input for the case where eightBitInput resource is false
* modify command-processing to accept an optional parameter that tells
xterm which shell program to use
* correct logic of ReallocateBufOffsets() which did not copy the content of
the old screen buffer to the proper location, making a repaint clear
after switching to wide-character mode
* implement the remaining pieces to make xterm allocate cells for
wide-characters when the "UTF-8" menu entry is selected. Also, load the
UTF-8 font when that menu entry is selected, or the escape sequence for
UTF-8 mode is received
Several changes are involved since they are all interrelated. These
changes affect about 1000 files.
The first major change is rewriting bsd.builtin.mk as well as all of
the builtin.mk files to follow the new example in bsd.builtin.mk.
The loop to include all of the builtin.mk files needed by the package
is moved from bsd.builtin.mk and into bsd.buildlink3.mk. bsd.builtin.mk
is now included by each of the individual builtin.mk files and provides
some common logic for all of the builtin.mk files. Currently, this
includes the computation for whether the native or pkgsrc version of
the package is preferred. This causes USE_BUILTIN.* to be correctly
set when one builtin.mk file includes another.
The second major change is teach the builtin.mk files to consider
files under ${LOCALBASE} to be from pkgsrc-controlled packages. Most
of the builtin.mk files test for the presence of built-in software by
checking for the existence of certain files, e.g. <pthread.h>, and we
now assume that if that file is under ${LOCALBASE}, then it must be
from pkgsrc. This modification is a nod toward LOCALBASE=/usr. The
exceptions to this new check are the X11 distribution packages, which
are handled specially as noted below.
The third major change is providing builtin.mk and version.mk files
for each of the X11 distribution packages in pkgsrc. The builtin.mk
file can detect whether the native X11 distribution is the same as
the one provided by pkgsrc, and the version.mk file computes the
version of the X11 distribution package, whether it's built-in or not.
The fourth major change is that the buildlink3.mk files for X11 packages
that install parts which are part of X11 distribution packages, e.g.
Xpm, Xcursor, etc., now use imake to query the X11 distribution for
whether the software is already provided by the X11 distribution.
This is more accurate than grepping for a symbol name in the imake
config files. Using imake required sprinkling various builtin-imake.mk
helper files into pkgsrc directories. These files are used as input
to imake since imake can't use stdin for that purpose.
The fifth major change is in how packages note that they use X11.
Instead of setting USE_X11, package Makefiles should now include
x11.buildlink3.mk instead. This causes the X11 package buildlink3
and builtin logic to be executed at the correct place for buildlink3.mk
and builtin.mk files that previously set USE_X11, and fixes packages
that relied on buildlink3.mk files to implicitly note that X11 is
needed. Package buildlink3.mk should also include x11.buildlink3.mk
when linking against the package libraries requires also linking
against the X11 libraries. Where it was obvious, redundant inclusions
of x11.buildlink3.mk have been removed.
Changes:
* increase color pairs value for xterm-256color and xterm-88color
to match ncurses, which has an experimental option to support this.
* modify ifdef's to make AIX use termios rather than termio; the
struct sizes for the two were not the same.
* improve CF_WITH_IMAKE_CFLAGS configure macro script for
OSMAJORVERSION and OSMINORVERSION values, e.g., for Tru64 and AIX.
* modify ifdef to define USE_POSIX_TERMIOS for Darwin (patch by
Min Sik Kim).
* modify find_utmp() to initialize the whole utmpx struct (except
ut_id), since that is needed for OSF1 4.0D to prevent an infinite loop
on exit.
* add configure check before adding -D_POSIX_SOURCE since some
platforms predefine it, e.g., cygwin.
* add simplified sed expressions in CF_IMAKE_CFLAGS configure
script macro to ensure value for PROJECTROOT is quoted on Solaris,
i.e., when nested \( and \) are not interpreted correctly.
* correct DEC rectangle operations to reset state after completing
the operations.
* modify CASE_ST handling in charproc.c to ensure that the parse
state is reset even if xterm is not currently processing an OSC or
other string (patch by Johnny Billquist forwarded by Matthias Scheler,
NetBSD xsrc/29003).
* fix OS/2 build for innotek_libc (patch by David Yeo).
* fix a regression from patch #197 fix for Debian #277832 which
disowned the selection if it was scrolled, e.g., by the user pressing
return at the bottom of the screen (Debian #291787).
* move the warning/exit for missing $DISPLAY into the error
handler in case -display is given, and the connect fails for some
other reason.
Changes since 197:
* instead of setting $DISPLAY, check for the unset variable and
warn/exit on this condition (comments by H Merijn Brand and
Bernhard R Link).
* fix a typo in Imakefile from patch #198 (reports/patches by
Stefan Dirsch, and Mike Castle).
* add utmpDisplayId resource to allow users to control whether the
display identifier (display number and screen number) are
retained in the connection information recorded in utmp
(discussion with Edoardo Tirtarahardja).
* add bellOnReset resource to allow users to disable bell which
sounds on hard reset since patch #183 changes to DECSCL
(discussion with Danek Duvall).
* improve $WINDOWID for configuration with toolbar by making it
refer to the top-level shell rather than the parent of the
current window. For that case, the parent is a form widget,
which does not have a name, which made the $WINDOWID not very
useful as a parameter for xwininfo (suggested by Dave
Bodenstab).
* fix a typo in WhichVFont() macro from patch #197 changes which
broke the --disable-active-icon configuration (report by Ralf
S. Engelschall).
* improve some limit checks (Gentoo Bugzilla #75604).
* add --disable-setuid option to configure script (Gentoo Bugzilla #76453).
* add --disable-full-tgetent option to configure script, allowing
one to ignore a termcap library in favor of ncurses/curses
(Gentoo Bugzilla #69926).
* modify configure script to choose useful warning options for
Intel version 8.0 compiler.
* update config.guess, config.sub
* make active-icon work properly when TrueType fonts are used
(Debian #286068).
* correct change from patch #157 which uses getlogin() to check
for an alias; the storage used for the related getpwuid() call
was overwritten by the data used for comparison (patch by Per
Hedeland).
* correct case of SCS for character set 0 (line-drawing) to allow
it to be selected into GR.
* fix a file-descriptor leak (Redhat Bugzilla #139597).
* modify creat_as() to only fork if xterm is actually running as
setuid and/or setgid. This works around a Cygwin bug which hangs
when logging is enabled and makes xterm a little faster for
systems using interfaces such as utempter (report by Al
Goodman).
* modify Cleanup() to avoid operations such as X calls that might
use unsafe functions when it is called by a signal handler
(report by Michiel Boland).
* fix bugs in patch #191 and in SRM changes from patch #197 that
broke DECSET 38: switch to Tek4014 emulation (report by Dave
Bodenstab).
* fix for manpage escapes (Marc La France).
* improve on IRIX-specific change for Imakefile in XFree86 CVS
versus resize linking against termcap library to reflect
definitions for USE_TERMCAP in resize.c
Package changes:
- use buildlink3.
- use GNU configure instead of imake.
- use official MASTER_SITE.
- external Xpoll.h no longer needed.
- remove ONLY_FOR_PLATFORM.
Major changes since 164 are lengthy and can be found at:
http://invisible-island.net/xterm/xterm.log.html