Re: Freebsd 14+ -- tcsh incompatible with terminfo

From: Thomas Dickey <dickey_at_his.com>
Date: Wed, 01 Nov 2023 00:18:05 UTC
On Tue, Oct 31, 2023 at 10:59:48PM +0000, Jamie Landeg-Jones wrote:
> Jamie Landeg-Jones <jamie@catflap.org> wrote:
> 
> > switch to tcsh, and reinitialise terminal information:
> >
> > % setenv TERM dumb
> > % setenv TERM xterm
> 
> % setenv TERM xterm-256color
> 
> Apologies, it seems this doesn't affect plain "xterm", but it does at least 
> affect xterm-16color and xterm-256color.

actually it probably does affect "xterm" 

Checking the source, tcsh is expecting a termcap string, while data read
from the terminfo database is going to be in terminfo format -- even if
read via tgetent/tgetstr

tcsh is expecting a termcap string, and in its EchoTC function it duplicates
the termcap version of what's tparm in a terminfo program.

(tcsh could be modified readily to use terminfo for the case you're describing,
 but supporting $TERMCAP would be work)
 
> Is this, therefore, a terminfo.db issue?
> 
> Thanks again, Jamie
> 

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