Date: Sat, 28 Feb 2009 01:35:55 +0000 From: Grzegorz Junka <cv@gjunka.com> To: Giorgos Keramidas <keramida@ceid.upatras.gr> Cc: "Paul B. Mahol" <onemda@gmail.com>, freebsd-questions@freebsd.org, Grzegorz Junka <cv@gjunka.com> Subject: Re: Emacs doesn't want to support 256 colors in terminal window Message-ID: <49A894FB.3040605@gjunka.com> In-Reply-To: <87sklzo0u4.fsf@kobe.laptop> References: <49A83FAB.8000307@gjunka.com> <87sklzo0u4.fsf@kobe.laptop>
next in thread | previous in thread | raw e-mail | index | archive | help
Giorgos Keramidas wrote: > On Fri, 27 Feb 2009 19:31:55 +0000, Grzegorz Junka <cv@gjunka.com> wrote: > >> FreeBSD port doesn't allow to configure Emacs in any way, neither from >> the original port, nor from the nox11 version. I don't think there is >> any special option for emacs to show 256 colors. Wherever I could find >> some information about this, people were saying that Emacs version >> >>> = 22 supports 256 colors without any additional configuration. As I >>> >> mentioned, Emacs not only doesn't show 256 colors, but not even 16, >> which I bet should be supported without any problems. No matter what I >> get only 8 colors, even if terminal is able to shows much much more. >> >> Another strange thing is that as far as I can see xterm-256color in >> FreeBSD termcap is simply an alias to xterm. Nevertheless, with these >> scripts mentioned above I can view more than 16 colors even if TERM is >> defined only as xterm. >> >> Do you think I should report it as a defect in emacs ports? >> > > It might be. I'll try to see if I can get Emacs to display 256 colors > in an xterm, but in the mean time can you please collect all your recent > findings in a problem report? It will be auto-assigned to me :) > If you haven't seen my response to the other email in the thread, then the progress is that I should be using tput Co, not tput colors. I tried all these configurations mentioned in my email and I see that tput Co always reports 8, regardless of what tput colors reports. That might be explaining the problem with emacs. Now, why tput reports 8 even if the (logical) terminal is defined as xterm-color or xterm-256color? Well, maybe the problem is not in emacs but in termcap/terminfo?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49A894FB.3040605>