Stuart Henderson writes:

> On 2021-06-20, Björn Gohla <[email protected]> wrote:
>>
>> hi all,
>>
>> i have the following problem with the kitty terminal emulator:
>>
>> ----
>> 15:43:39 bgohla@titanic ~ $ doas pkg_add hello
>> doas ([email protected]) password: 
>> failed termcap lookup on xterm-kitty at 
>> /usr/libdata/perl5/OpenBSD/ProgressMeter/Term.pm line 113.
>> 15:44:02 bgohla@titanic ~ $ echo $TERM
>> xterm-kitty
>> 15:44:17 bgohla@titanic ~ $
>> ----
>>
>> it seems the problem is that there is no entry for xterm-kitty in
>> /etc/termcap. the above pkg_add invocation works when i set TERM=xterm .
>>
>> i suppose one could just add a termcap entry that redirects to
>> xterm.
>>
>> would this be a patch in the kitty port, or does this require a change
>> to the base system?
>>
>> --
>> cheers,
>> björn
>>
>>
>
> It would require a change in the base system, /usr/share/misc/termcap is
> a system file and isn't something that can be modified from a port.
> Additionally it will get overwritten when the OS is updated.
>
> Software that uses terminfo will work with kitty as it sets TERMINFO in
> the environment pointing at its own special file; that's not possible
> with termcap.

So given that there doesn't seem to be a stable way to extend the
termcap database from a port, shouldn't it be depracated?

Reply via email to