Key phrase:
… is such change intentional?
Yes.
Maybe 14.0-RELEASE.
Code:
% rg --sort path ncurses /usr/doc/website/content/en/releases/14.0R
/usr/doc/website/content/en/releases/14.0R/relnotes.adoc
496:The `libncursesw` library (see man:ncurses[3X]) has been split into `libtinfow` and `libncursesw`.
498:man:pkg-config[8] files are now installed, to ease ports detecting the `ncurses` setup from base.
501:The man:ncurses[3X] library is now able to use man:terminfo[5] as well as man:termcap[5], and uses terminfo preferentially.
504:The default search path for terminfo databases in man:ncurses[3X] now includes [.filename]#/usr/local/share/terminfo#, facilitating the use of a database from ports or packages.
%
Base 61f66a1f4403fded9aae14d890ad96914a3c0bc1:
ncurses: Add support for terminfo database
Along with the termcap database, ncurses will now lookup for the terminfo database, note that the terminfo database is being looked up first and then it fallsback on the termcap one.
While here drop our custom reader for the termcap database, over the time it is needed maintenance to be able to catchup with changes on ncurses side.
Install the ncurses tools which are needed to deal with the terminfo database: tic, infocmp, toe
Replace our termcap only aware tools with the ncurses counterpart: tput, tabs, tset, clear and reset
In particular they can your the extra capabilities described in the terminfo database, which does not exist in termcap
Note that to add a new terminfo information to the database from ports the ports will just need to add their extra information into: /usr/local/share/site-terminfo/<firstletteroftheterm>/<term>
Tested by: jbeich, manu
Code:
% rg --sort path 'alternate screen buffer' /usr/src
/usr/src/contrib/ncurses/misc/terminfo.src
5726:xterm1|xterm terminal emulator ignoring the alternate screen buffer,
%
Historically, xterm-clear was a commonplace workaround to not getting the alternate screen buffer with xterm-256.