From nobody Tue Apr 11 00:14:09 2023 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PwRCq0bD8z450FR for ; Tue, 11 Apr 2023 00:14:15 +0000 (UTC) (envelope-from btv1==465cb2ae642==tom@invisible-island.net) Received: from smtp-1a.his.com (smtp-1a.his.com [216.194.196.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PwRCn4nD4z3Mw9 for ; Tue, 11 Apr 2023 00:14:13 +0000 (UTC) (envelope-from btv1==465cb2ae642==tom@invisible-island.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of "btv1==465cb2ae642==tom@invisible-island.net" designates 216.194.196.25 as permitted sender) smtp.mailfrom="btv1==465cb2ae642==tom@invisible-island.net"; dmarc=none Received: from cuda501.his.com (cuda501.his.com [18.191.10.220]) by smtp-1a.his.com (Postfix) with ESMTPS id AED549A for ; Mon, 10 Apr 2023 20:14:11 -0400 (EDT) X-ASG-Debug-ID: 1681172050-1f26af6bb92166c0001-XioQCd Received: from smtp-nf-202.his.com (smtp-nf-202.his.com [216.194.196.20]) by cuda501.his.com with ESMTP id CVNElw54dYLM8qB7; Mon, 10 Apr 2023 20:14:10 -0400 (EDT) X-Barracuda-Envelope-From: tom@invisible-island.net X-Barracuda-RBL-Trusted-Forwarder: 216.194.196.20 Received: from zproxy101.his.com (zproxy101.his.com [18.218.2.49]) by smtp-nf-202.his.com (Postfix) with ESMTPS id 8BB5E609B6; Mon, 10 Apr 2023 20:14:10 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zproxy101.his.com (Postfix) with ESMTP id 5063317B269; Mon, 10 Apr 2023 20:14:10 -0400 (EDT) X-Barracuda-RBL-IP: 18.218.2.49 X-Barracuda-Effective-Source-IP: zproxy101.his.com[18.218.2.49] X-Barracuda-Apparent-Source-IP: 18.218.2.49 Received: from zproxy101.his.com ([127.0.0.1]) by localhost (zproxy101.his.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id w0y31Tj_FK91; Mon, 10 Apr 2023 20:14:10 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zproxy101.his.com (Postfix) with ESMTP id 3801617B26C; Mon, 10 Apr 2023 20:14:10 -0400 (EDT) X-Virus-Scanned: amavisd-new at zproxy101.his.com Received: from zproxy101.his.com ([127.0.0.1]) by localhost (zproxy101.his.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id mHQKQlEoqOQX; Mon, 10 Apr 2023 20:14:10 -0400 (EDT) Received: from prl-debianold-64.jexium-island.net (static-96-255-221-90.washdc.fios.verizon.net [96.255.221.90]) by zproxy101.his.com (Postfix) with ESMTPSA id 23C5117B26A; Mon, 10 Apr 2023 20:14:10 -0400 (EDT) Received: from tom by prl-debianold-64.jexium-island.net with local (Exim 4.94.2) (envelope-from ) id 1pm1eD-000ffE-D9; Mon, 10 Apr 2023 20:14:09 -0400 Date: Mon, 10 Apr 2023 20:14:09 -0400 From: Thomas Dickey To: Dan Mack Cc: current@freebsd.org Subject: Re: documentation nit / TERMINFO in ncurses man pages Message-ID: X-ASG-Orig-Subj: Re: documentation nit / TERMINFO in ncurses man pages Reply-To: dickey@his.com References: <7f3334ff-cdfa-0de-5640-8f9d519fce@macktronics.com> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VM4apnJeeT11lOcK" Content-Disposition: inline In-Reply-To: <7f3334ff-cdfa-0de-5640-8f9d519fce@macktronics.com> X-Barracuda-Connect: smtp-nf-202.his.com[216.194.196.20] X-Barracuda-Start-Time: 1681172050 X-Barracuda-URL: https://spam.his.com:443/cgi-mod/mark.cgi X-Barracuda-BRTS-Status: 1 X-Virus-Scanned: by bsmtpd at his.com X-Barracuda-Scan-Msg-Size: 2110 X-Barracuda-Bayes: INNOCENT GLOBAL 0.5000 1.0000 0.0000 X-Barracuda-Spam-Score: 0.50 X-Barracuda-Spam-Status: No, SCORE=0.50 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=5.0 KILL_LEVEL=7.0 tests=BSF_RULE7568M X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.107251 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.50 BSF_RULE7568M Custom Rule 7568M X-Spamd-Result: default: False [-5.13 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.95)[-0.954]; NEURAL_HAM_MEDIUM(-0.78)[-0.778]; RCVD_IN_DNSWL_LOW(-0.30)[216.194.196.25:from,216.194.196.20:received,18.218.2.49:received]; FORGED_SENDER(0.30)[dickey@his.com,btv1==465cb2ae642==tom@invisible-island.net]; R_SPF_ALLOW(-0.20)[+ip4:216.194.196.0/22]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; RCPT_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:11604, ipnet:216.194.196.0/24, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[current@freebsd.org]; HAS_REPLYTO(0.00)[dickey@his.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[his.com]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_NEQ_ENVFROM(0.00)[dickey@his.com,btv1==465cb2ae642==tom@invisible-island.net]; TO_DN_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; RCVD_TLS_LAST(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_SEVEN(0.00)[10] X-Rspamd-Queue-Id: 4PwRCn4nD4z3Mw9 X-Spamd-Bar: ----- X-ThisMailContainsUnwantedMimeParts: N --VM4apnJeeT11lOcK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 07, 2023 at 09:51:30AM -0500, Dan Mack wrote: >=20 > I recently logged into one of my FreeBSD systems from an alacritty termin= al. > FreeBSD didn't have a termcap entry for alacritty so I generated one with > tic and all was well. However, I noticed the following issues with the > TERM* related tools (I guess this is all from contrib/ncurses in /usr/src= ). >=20 > Specifically, the issue is for example - the tic(1M) man page says in the > FILES section: >=20 > /usr/share/misc/terminfo/?/* > Compiled terminal description database. The "misc" appears to come from lib/ncurses/config.mk, and (since the library holds the pathname) would be used in usr.bin/ncurses -- However, I don't see any of those programs installed in /usr/bin on an up-to-date FreeBSD machine. If you have tic, I'd expect it to be in the add-on package (in /usr/local/bin). > However, when you run tic(1M), the compiled terminal files are actually > placed in /usr/share/terminfo/?/* . I thought I could create a simple o= ne > line fix by re-defining the definition for *d in the manpage, however, it > looks like there there might be a need to create two separate directory > variables instead. The manpage shows only the default location for writing files. tic only has one of those (corresponding to $TERMINFO). Further in the manpage, it summarizes the places tic looks to read files (corresponding to $TERMINFO_DIRS). > On FreeBSD-Current HEAD (2d3614fb132b1cb8efd1e0accdd0c98ce6893efa) I am > seeing two directories in use: >=20 > /usr/share/terminfo/? - compiled entries created by tic(1M) > and > /usr/share/misc - contains the files termcap and termcap.db >=20 > Looks like this directory reference is set to *d here in the tic manpage: >=20 > 18259542b2f8f contrib/ncurses/man/tic.1m 2000-10-11 07:31:01 +0000 37) .= ds > d @TERMINFO@ >=20 > Since this is also set in alot of other places, we probably need someone = to > make some sort of decision :-) >=20 > Dan >=20 --=20 Thomas E. Dickey https://invisible-island.net --VM4apnJeeT11lOcK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmQ0pk0ACgkQzCr0RyFn vgPU3Av9H/oAHclL30ldBsbAqfFavcUaSMPjcxN4edzNpLzhM4XL7RBiNCLooDP1 tfEcHVKlVcbJRKMnnQ8NLt+rZOOc3UPwB7X3RN9uvpu5pgqazqCk05te29N2PsoT KVxRT7VGp9J9KfEPwsx2mLrWLZtBZLKrEfrFJ8ARFq7NUC13zPYbeTY5Ro2cZ+XM GYCWGh2rPZaiGHcsnFm/q0zH/O3fVbNunidk+RUew8cOLi/FXMjy9UhX5X19tuqX uvTS43u9FWqcBYfu7BQdRRKs5Ob7nAdN1IWhyxIZ9a6nqyX15nf4taVVXfELRcaf 46tfN3N1Ym0eLGrpSZPP6bPfg/rs56qSsdzw+ljf/hwSl8EgwW3/Ak5XDzC9fGn0 oI/tgGPW+5Io21B+fieFdANBnKSahr+dIH55WC3OK71pmeL3z+rFmYFuHCLO8Fqp 65hWx2pBcHYz/SbIW+ygRTas4Xz8b6ilX6fi/LuHHR0w9rc1rL1lqrjfqHS1dBRS 0o8tUskr =1V9E -----END PGP SIGNATURE----- --VM4apnJeeT11lOcK--