On Tue, Dec 19, 2023 at 05:46:49AM +0000, cml55uk wrote:
> Hi dickey,
> 
> A bug in the OpenBSD sense of a man text error
> 
> man xterm and under the -ti switch section it examples "vtvt100" instead of 
> just "vt100"

The manpage has several places which are adjusted during the build.
The original on this chunk hasn't changed for a while:

1.466        (tom      16-Jul-10): .BI \-ti " term_id"
1.545        (tom      08-Oct-12): Specify the name used by \fI\*n\fP to select 
the
1.58         (tom      21-Jan-99): correct response to terminal ID queries.
1.58         (tom      21-Jan-99): It also specifies the emulation level,
1.58         (tom      21-Jan-99): used to determine the type of response to a 
DA control sequence.
1.565        (Ross.Com 28-May-13): Valid values include vt52, vt100, vt101, 
vt102, vt220, and vt240
1.492        (tom      04-Jul-11): (the \*(``vt\*('' is optional).
1.502        (tom      16-Aug-11): The default is 
\*(``vt__default_termid__\*(''.
1.687        (tom      24-Sep-16): The \fIterm_id\fP argument specifies the 
terminal ID to use.
1.272        (tom      06-Jul-04): (This is the same as the \fBdecTerminalID\fP 
resource).

and minstall.in (my script) hasn't changed that recently:

1.18         (tom      01-Jan-13):      -e 's%^'"$APP_name"' \\- %'"$USE_name"' 
\- %' \
1.26         (tom      27-Jan-21):      -e 
"s%__default_termname__%@default_TERM@%" \
1.26         (tom      27-Jan-21):      -e 
"s%__default_termid__%@default_termid@%" \
1.26         (tom      27-Jan-21):      -e 
"s%__alt_sends_esc__%@alt_sends_esc@%" \

OpenBSD doesn't actually use any of the configure/install scripts,
replacing those by patches.  The configure script does this:

AC_MSG_CHECKING(for default terminal-id)
AC_ARG_WITH(terminal-id,
        [  --with-terminal-id=V    set default decTerminalID (default: vt420)],
        [default_termid=$withval],
        [default_termid=vt420])
AC_MSG_RESULT($default_termid)
case $default_termid in
(vt*)   default_termid=`echo $default_termid | sed -e 's/^..//'`

producing this chunk for the sed script:

s,@default_termid@,420,;t t

However, OpenBSD's makefile

https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/xenocara/app/xterm/Makefile?rev=1.37&content-type=text/plain

does this:

            -e s%__default_termid__%vt100% \
 
> Well at least it does in my OpenBSD 7.4 install

that's a bug in OpenBSD's patches.

-- 
Thomas E. Dickey <dic...@invisible-island.net>
https://invisible-island.net

Reply via email to