kitty termcap entry

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

kitty termcap entry

björn gohla

hi all,

i have the following problem with the kitty terminal emulator:

----
15:43:39 bgohla@titanic ~ $ doas pkg_add hello
doas ([hidden email]) 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

Reply | Threaded
Open this post in threaded view
|

Re: kitty termcap entry

Karl Pettersson-3
Hi

Have you tried this (specifically the last part about generating a termcap
description and appending to the termcap database)?

https://sw.kovidgoyal.net/kitty/faq.html?highlight=termcap#i-get-errors-about-the-terminal-being-unknown-or-opening-the-terminal-failing-when-sshing-into-a-different-computer

Cheers

On Sun, Jun 20, 2021 at 03:51:26PM +0100, Björn Gohla wrote:

>
> hi all,
>
> i have the following problem with the kitty terminal emulator:
>
> ----
> 15:43:39 bgohla@titanic ~ $ doas pkg_add hello
> doas ([hidden email]) 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
>

--
Karl Pettersson

Reply | Threaded
Open this post in threaded view
|

Re: kitty termcap entry

björn gohla

Karl Pettersson writes:

> Hi
>
> Have you tried this (specifically the last part about generating a termcap
> description and appending to the termcap database)?
>
> https://sw.kovidgoyal.net/kitty/faq.html?highlight=termcap#i-get-errors-about-the-terminal-being-unknown-or-opening-the-terminal-failing-when-sshing-into-a-different-computer

[...]

nice. this works.

but i was rather wondering what i can do so this happens automatically
when the port is installed.

--
cheers,
björn