From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: Bug in 256 color terminal, colors > first 8 appear as white Date: Sun, 06 Jul 2008 20:03:35 -0700 Message-ID: <200807070303.m6733adm021090@sallyv1.ics.uci.edu> References: <200807040150.m641oRo6002447@sallyv1.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1215399923 8903 80.91.229.12 (7 Jul 2008 03:05:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jul 2008 03:05:23 +0000 (UTC) Cc: Emacs-Devel devel To: Len Trigg Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 07 05:06:10 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KFh35-0004T0-Um for ged-emacs-devel@m.gmane.org; Mon, 07 Jul 2008 05:05:56 +0200 Original-Received: from localhost ([127.0.0.1]:49510 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFh2E-0005tW-US for ged-emacs-devel@m.gmane.org; Sun, 06 Jul 2008 23:05:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KFh2A-0005tL-U6 for emacs-devel@gnu.org; Sun, 06 Jul 2008 23:04:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KFh29-0005sx-Ao for emacs-devel@gnu.org; Sun, 06 Jul 2008 23:04:58 -0400 Original-Received: from [199.232.76.173] (port=33773 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFh29-0005su-3O for emacs-devel@gnu.org; Sun, 06 Jul 2008 23:04:57 -0400 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]:33107) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1KFh28-0000pD-Jo for emacs-devel@gnu.org; Sun, 06 Jul 2008 23:04:56 -0400 X-ICS-MailScanner-Watermark: 1216004618.92638@YgcjAF6u3BNns3mOq501Cg Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m6733adm021090; Sun, 6 Jul 2008 20:03:36 -0700 (PDT) In-Reply-To: (Len Trigg's message of "Mon, 07 Jul 2008 10:08:01 +1200") Original-Lines: 45 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-0.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44, dmtrx175 1.00) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:100404 Archived-At: Len Trigg writes: > Len Trigg wrote: > > > > Dan Nicolaescu wrote: > > > Do you have the header files for termcap or terminfo or ncurses installed? > > > > > > What do you get if you do: > > > > > > grep TERM emacs/src/config.h > > > > After getting your message, the grep gave me: > > > > /* #undef HAVE_TERMCAP_H */ > > #define HAVE_TERMIOS_H 1 > > /* #undef HAVE_TERM_H */ > > > > So I installed libtermcap-devel (I'm on centos 5.2), and now after > > doing: > > > > make maintainer-clean && ./configure --prefix=/home2/len/local && make bootstrap install > > > > the grep gives me: > > > > #define HAVE_TERMCAP_H 1 > > #define HAVE_TERMIOS_H 1 > > /* #undef HAVE_TERM_H */ > > > > Which looks better. However, the newly built emacs still exhibits the > > same problem. Is there more I need? > > Following up myself, I found and installed ncurses-devel, and now the grep gives: > > #define HAVE_TERMCAP_H 1 > #define HAVE_TERMIOS_H 1 > #define HAVE_TERM_H 1 > > And now list-colors-display shows all the colors correctly. So, to > summarize, it seems that both ncurses and termcap headers are needed > for this to work (maybe terminfo could be substituted for termcap?). Doubtful. The terminfo headers should be enough. I'd guess that the termcap entry for the terminal you are using is incorrect. Or maybe the termcap code is broken as it does not get much (or any at all) testing because most machines use terminfo nowadays.