WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: Bug in 256 color terminal, colors > first 8 appear as white

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

by Len Trigg-5 :: Rate this Message:

| View in Thread

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?).

Thanks for pointing me in the right direction.


Cheers,
Len.



 « Return to Thread: Bug in 256 color terminal, colors > first 8 appear as white