I'm trying to enable 24bit support on the terminal (via SSH) on my FreeBSD 12 installation without success.
I tried to create a terminfo file with the contents:
xterm-24bit|xterm with 24-bit direct color mode,
use=xterm-256color,
sitm=\E[3m,
ritm=\E[23m,
setb24=\E[48;2;%p1%{65536}%/%d;%p1%{256}%/%{255}%&%d;%p1%{255}%&%dm,
setf24=\E[38;2;%p1%{65536}%/%d;%p1%{256}%/%{255}%&%d;%p1%{255}%&%dm,
And then executed the command (after installing ncurses):
$ tic -x -o ~/.terminfo xterm-24bit.terminfo
But when trying to run emacs, I get:
emacs: Cannot open terminfo database file
So, I tried to use infocmp -Cr to generate a termcap version and updated the db running:
# cap_mkdb /usr/share/misc/termcap
That almost worked, the emacs opens but black and white only :(
My terminal does support 24bit color and I use this mode via ssh on my other Linux machines. Does anybody uses 24 bit terminals on FreeBSD?
strings, looking forterminfo.