From owner-freebsd-questions@FreeBSD.ORG Sat Feb 28 01:35:39 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26564106566C for ; Sat, 28 Feb 2009 01:35:39 +0000 (UTC) (envelope-from cv@gjunka.com) Received: from outbound-mail-315.bluehost.com (outbound-mail-315.bluehost.com [67.222.54.8]) by mx1.freebsd.org (Postfix) with SMTP id EC2988FC17 for ; Sat, 28 Feb 2009 01:35:38 +0000 (UTC) (envelope-from cv@gjunka.com) Received: (qmail 17328 invoked by uid 0); 28 Feb 2009 01:30:52 -0000 Received: from unknown (HELO host79.hostmonster.com) (74.220.207.79) by outboundproxy6.bluehost.com with SMTP; 28 Feb 2009 01:30:52 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gjunka.com; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=LbwnEMswj42d1RGxNuNtlbDghlRwDihAcNwbldb0ZXwmXDgINiUNsjgAt6S54rEImpF9UVO5Hb6h7+edVc3cdmXG3gpKe0H2ru4Xy+XLnSSJ7T22ZOUabfkuToFtC/hV; Received: from host-84-9-59-118.dslgb.com ([84.9.59.118] helo=[192.168.1.66]) by host79.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1LdE78-00034d-8o; Fri, 27 Feb 2009 18:35:38 -0700 Message-ID: <49A894FB.3040605@gjunka.com> Date: Sat, 28 Feb 2009 01:35:55 +0000 From: Grzegorz Junka User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Giorgos Keramidas References: <49A83FAB.8000307@gjunka.com> <87sklzo0u4.fsf@kobe.laptop> In-Reply-To: <87sklzo0u4.fsf@kobe.laptop> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {630:host79.hostmonster.com:gjunkaco:gjunka.com} {sentby:smtp auth 84.9.59.118 authed with cv+gjunka.com} Cc: "Paul B. Mahol" , freebsd-questions@freebsd.org, Grzegorz Junka Subject: Re: Emacs doesn't want to support 256 colors in terminal window X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2009 01:35:39 -0000 Giorgos Keramidas wrote: > On Fri, 27 Feb 2009 19:31:55 +0000, Grzegorz Junka 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?