conf/147992: xterm-256color is a 8 colors terminal
Anonymous
swell.k at gmail.com
Sun Jun 27 09:40:03 UTC 2010
The following reply was made to PR conf/147992; it has been noted by GNATS.
From: Anonymous <swell.k at gmail.com>
To: David BERARD <contact at davidberard.fr>
Cc: Ed Schouten <ed at FreeBSD.org>, bug-followup at FreeBSD.org
Subject: Re: conf/147992: xterm-256color is a 8 colors terminal
Date: Sun, 27 Jun 2010 13:33:36 +0400
I don't think your patch is going to work because AB=\E[4%dm:AF=\E[3%dm
are not what xterm uses in order to display 256 colors. Try smth like
$ test_256_colors() { local i; while [ $((i+=1)) -le 256 ]; do tput AF $i; echo -n "$*"; done; tput me; }
$ test_256_colors '&&&'
then
$ export TERMCAP="$TERM:AB=\E[48;5;%dm:AF=\E[38;5;%dm:$TERM"
$ test_256_colors '&&&'
Perhaps, r200369 will be MFC'd to /stable/8 when there is looming 8.1-RELEASE.
More information about the freebsd-bugs
mailing list