emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in 256 color terminal, colors > first 8 appear as white


From: Dan Nicolaescu
Subject: Re: Bug in 256 color terminal, colors > first 8 appear as white
Date: Sun, 06 Jul 2008 20:03:35 -0700

Len Trigg <address@hidden> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]