From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 27 09:40:03 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA425106564A for ; Sun, 27 Jun 2010 09:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B9B228FC0A for ; Sun, 27 Jun 2010 09:40:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o5R9e3a7039662 for ; Sun, 27 Jun 2010 09:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o5R9e3qt039661; Sun, 27 Jun 2010 09:40:03 GMT (envelope-from gnats) Date: Sun, 27 Jun 2010 09:40:03 GMT Message-Id: <201006270940.o5R9e3qt039661@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Anonymous Cc: Subject: Re: conf/147992: xterm-256color is a 8 colors terminal X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Anonymous List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jun 2010 09:40:03 -0000 The following reply was made to PR conf/147992; it has been noted by GNATS. From: Anonymous To: David BERARD Cc: Ed Schouten , bug-followup@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.