unibilium icon indicating copy to clipboard operation
unibilium copied to clipboard

Hashed DB terminfo support / FreeBSD

Open novel opened this issue 7 years ago • 2 comments

Currently, unibilium expects terminfo data to be available via the directory tree where each $TERM has a file corresponding to it.

However, ncurses provided by the FreeeBSD port devel/ncurses ships terminfo data as a single bdb file, so it looks like that:

$ env|grep TERM    
TERM=screen-256color
COLORTERM=rxvt
TERMINFO=/usr/local/share/misc/terminfo.db
$ LC_ALL=C ls -l ${TERMINFO}
-rw-r--r--  1 root  wheel  5079040 Oct  1 08:24 /usr/local/share/misc/terminfo.db
$

So, I guess, to support that, unibilium should check if $TERMINFO is a file, and extract the info the the db file instead, and keep the current behavior if that's a dir.

PS I'm not sure if #25 is about the same thing.

novel avatar Oct 03 '17 03:10 novel

See also https://rt.cpan.org/Ticket/Display.html?id=123603

leonerd avatar May 19 '18 14:05 leonerd

PS I'm not sure if #25 is about the same thing.

nope, netbsd-curses uses CDB format.

rofl0r avatar May 19 '18 21:05 rofl0r