Re: /usr/share/terminfo



Thomas Dickey <dickey@xxxxxxxxxxxxxxxxxx> wrote:
dave <daf@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
How do I find out what terminals are described in terminfo.db?
(I'm particularly interested in vt100, vt220, ansi, and pc)

probably by reading /usr/share/misc/termcap

I don't see a matching /usr/share/misc/terminfo for the terminfo.db
file in an OpenBSD 3.7, though there was one in an older version
of OpenBSD. Since a lot of the information is lost when putting it
into termcap format, it doesn't make much sense - but that's what is
packaged.

How do I retrieve from terminfo.db a complete terminfo entry for a
given terminal?

In the existing package, I don't see that you can.

The ".db" files are built using cap_mkdb; afaik there's no
complementary program for converting a termcap database back to source.

ncurses 5.6 can be configured with a hashed database for terminfo,
but using a different storage format than that used in OpenBSD.
In ncurses 5.6, the "toe" program gives a table of contents for
the terminfo database.

How do I find out which terminals have emulators built into the OS?

( see above ;-)

for reference

ftp://invisible-island.net/ncurses/terminfo.src.gz
ftp://invisible-island.net/ncurses/termcap.src.gz

Thomas,

I have avoided trying to install Ncurses 5.6, but now I am ready.
I have already built 5.6. Can I just install it on top of the
standard OpenBSD (n)curses package, or are things more complicated?

Thanks.
Dave

--
Jerry Silverstein - The GOD of Jewish Lightning
.