Hi again Philip, On 2016-08-08 Mon 13:33 PM |, Philip Guenther wrote: > > You can probably emulate this by defining your own terminfo entry > under ~/.terminfo/ with the desired overrides. >
This is what I've done (inspired by Mark Nudelman's post on http://linuxtidbits.wordpress.com/2009/03/23/less-colors-for-man-pages/): $ cat ~/.terminfo/Makefile # # $Id: Makefile,v 1.13 2016/08/10 17:40:04 craig Exp $ # # Public domain # DIR!= print ${TERM} | cut -c 1 .SILENT: all: ${DIR}/${TERM} ${DIR}/${TERM}: ${@F}.ti tic ${@F}.ti ${TERM}.ti: print "${@:R}," > $@ put=$$(tput blink && tput setaf 1) && print "\tblink=$${put}," >> $@ put=$$(tput bold && tput setaf 2) && print "\tbold=$${put}," >> $@ -put=$$(tput dim && tput setaf 5) && print "\tdim=$${put}," >> $@ put=$$(tput smso && tput setaf 3) && print "\tsmso=$${put}," >> $@ put=$$(tput rmso && tput setaf 7) && print "\trmso=$${put}," >> $@ put=$$(tput smul && tput setaf 6) && print "\tsmul=$${put}," >> $@ put=$$(tput rmul && tput setaf 7) && print "\trmul=$${put}," >> $@ print "\tuse=${@:R}," >> $@ # EOF <me@puffy:.terminfo 0>$ find ~/.terminfo /home/me/.terminfo /home/me/.terminfo/Makefile /home/me/.terminfo/Makefile,v <me@puffy:.terminfo 0>$ for t in screen xterm xterm-new xterm-color tmux > do > export TERM=$t > make > done tput: Unknown terminfo capability `dim' *** Error 4 in target 'xterm-color.ti' (ignored) <me@puffy:.terminfo 0>$ find . . ./Makefile ./Makefile,v ./screen.ti ./s ./s/screen ./tmux.ti ./t ./t/tmux ./xterm.ti ./xterm-new.ti ./xterm-color.ti ./x ./x/xterm ./x/xterm-new ./x/xterm-color Then test for each terminal in screen xterm xterm-new xterm-color tmux: $ export TERM=blah $ man ls $ less /var/log/messages # Search for bsd & see coloured highlighting. $ colorls -GF / # Check colours. $ vim -R /usr/libexec/security # Check syntax colouring, etc. $ lynx www.OpenBSD.Org Seems OK. To install the made terminfo files for everybody (after backing up): $ cd /usr/share/terminfo && \ sudo cp -pi t/tmux t/tmux-OpenBSD && \ sudo cp -pi s/screen s/screen-OpenBSD && \ sudo cp -pi x/xterm x/xterm-OpenBSD && \ sudo cp -pi x/xterm-new x/xterm-new-OpenBSD && \ sudo cp -pi x/xterm-color x/xterm-color-OpenBSD $ sudo install -b -S -p -o root -g bin -m 444 ~me/.terminfo/t/tmux t/tmux $ sudo install -b -S -p -o root -g bin -m 444 ~me/.terminfo/s/screen s/screen $ sudo install -b -S -p -o root -g bin -m 444 ~me/.terminfo/x/xterm x/xterm $ sudo install -b -S -p -o root -g bin -m 444 ~me/.terminfo/x/xterm-new x/xterm-new $ sudo install -b -S -p -o root -g bin -m 444 ~me/.terminfo/x/xterm-color x/xterm-color Disable my local overrides: <me@puffy:terminfo 0>$ cd <me@puffy:~ 0>$ mv ~/.terminfo ~/.terminfo~ $ man ls # and run the other tests above again. Cheers! -- http://www.youtube.com/watch?v=RT3zUy_kXTE