Date: Mon, 10 Apr 2023 20:14:09 -0400 From: Thomas Dickey <dickey@his.com> To: Dan Mack <mack@macktronics.com> Cc: current@freebsd.org Subject: Re: documentation nit / TERMINFO in ncurses man pages Message-ID: <ZDSmUe3ZZh00zSlX@prl-debianold-64.jexium-island.net> In-Reply-To: <7f3334ff-cdfa-0de-5640-8f9d519fce@macktronics.com> References: <7f3334ff-cdfa-0de-5640-8f9d519fce@macktronics.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Fri, Apr 07, 2023 at 09:51:30AM -0500, Dan Mack wrote: > > I recently logged into one of my FreeBSD systems from an alacritty terminal. > 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). > > Specifically, the issue is for example - the tic(1M) man page says in the > FILES section: > > /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 one > 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: > > /usr/share/terminfo/? - compiled entries created by tic(1M) > and > /usr/share/misc - contains the files termcap and termcap.db > > Looks like this directory reference is set to *d here in the tic manpage: > > 18259542b2f8f contrib/ncurses/man/tic.1m 2000-10-11 07:31:01 +0000 37) .ds > d @TERMINFO@ > > Since this is also set in alot of other places, we probably need someone to > make some sort of decision :-) > > Dan > -- Thomas E. Dickey <dickey@invisible-island.net> https://invisible-island.net [-- Attachment #2 --] -----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-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ZDSmUe3ZZh00zSlX>
