Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2002 08:29:14 +0100
From:      Roman Neuhauser <neuhauser@mobil.cz>
To:        Anthony Campbell <ac@acampbell.org.uk>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Still can't get color in xterm properly.
Message-ID:  <20020115082914.I393@roman.mobil.cz>
In-Reply-To: <20020114192638.GE8252@debian.local>
References:  <20020114170518.GA7846@debian.local> <20020114184637.F393@roman.mobil.cz> <20020114192638.GE8252@debian.local>

next in thread | previous in thread | raw e-mail | index | archive | help

--tKW2IUtsqtDRztdT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

> Date: Mon, 14 Jan 2002 19:26:39 +0000
> From: Anthony Campbell <ac@acampbell.org.uk>
> To: Roman Neuhauser <neuhauser@mobil.cz>
> Subject: Re: Still can't get color in xterm properly.

    (cc'd back to list)

> On 14 Jan 2002, Roman Neuhauser wrote:
> > > Date: Mon, 14 Jan 2002 17:05:18 +0000
> > > From: Anthony Campbell <ac@acampbell.org.uk>
> > > To: freebsd-questions@FreeBSD.ORG
> > > Subject: Still can't get color in xterm properly.
> > > 
> > > I can set 
> > > 
> > > 	TERM=xterm-color; export TERM
> > > 
> > > In an  xterm window and it will work for that window, but not in others.
> > > If I put it in $HOME/.profile or in /etc/profile it causes wrong symbols
> > > to appear in the consoles and doesn't work in X.
> > > 
> > > Where is one supposed to put it so that it is the default for X?
> > 
> >     Hi Anthony,
> >     I've got this in my ~/.Xdefaults:
> >     aterm.termName: xterm-color
> > 
> 
> Thanks also to Jan, Vivek, and Ceri for replies; this was the only
> solution that worked for me. I'm not sure why it's so much more
> difficult to get this effect in Freebsd than in Linux, unless it's the
> difference between terminfo and termcap?

    No. Thomas Dickey (xterm maintainer) told me it's because FreeBSD
    ships with broken termcap database. See the attached message.
   
-- 
FreeBSD 4.4-STABLE
8:08AM up 2 days, 12:05, 17 users, load averages: 0.01, 0.03, 0.00

--tKW2IUtsqtDRztdT
Content-Type: message/rfc822
Content-Disposition: inline

Delivered-To: postmaster@roman.mobil.cz
Received: from localhost (127.0.0.1) by roman.mobil.cz with POP3 for
  <postmaster@roman.mobil.cz>; 01 Nov 2001 18:40:01 -0000
Received: from mobil.cz ([195.39.16.12])
          by ester.mobil.cz (Lotus Domino Release 5.0.7)
          with ESMTP id 2001110119313160:351 ;
          Thu, 1 Nov 2001 19:31:31 +0100 
Received: from agent57.gbnet.net (agent57.gbnet.net [194.70.126.12])
	by mobil.cz (8.11.6/8.11.0) with SMTP id fA1IPkR08778
	for <neuhauser@mobil.cz>; Thu, 1 Nov 2001 19:25:47 +0100
Received: (qmail 19378 invoked from network); 1 Nov 2001 18:23:47 -0000
Received: from ns.gbnet.net (qmailr@194.70.126.10)
  by agent57.gbnet.net with SMTP; 1 Nov 2001 18:23:47 -0000
Received: (qmail 739 invoked by uid 610); 1 Nov 2001 18:21:07 -0000
Delivered-To: mutt-users@ns.gbnet.net
Received: (qmail 729 invoked from network); 1 Nov 2001 18:21:04 -0000
Received: from herndon4.his.com (209.67.207.7)
  by ns.gbnet.net with SMTP; 1 Nov 2001 18:21:04 -0000
Received: from localhost (dickey@localhost)
	by herndon4.his.com (8.9.3/8.9.3) with ESMTP id NAA06677;
	Thu, 1 Nov 2001 13:20:53 -0500 (EST)
Date: Thu, 1 Nov 2001 13:20:53 -0500 (EST)
From: "Thomas E. Dickey" <dickey@herndon4.his.com>
Reply-To: <dickey@herndon4.his.com>
To: Roman Neuhauser <neuhauser@mobil.cz>
cc: <mutt-users@mutt.org>
Subject: Re: color
In-Reply-To: <20011101182056.C9584@roman.mobil.cz>
Message-ID: <Pine.BSI.4.33.0111011314330.6075-100000@herndon4.his.com>
MIME-Version: 1.0
Sender: owner-mutt-users@mutt.org
Precedence: bulk
X-MIMETrack: Itemize by SMTP Server on ester/Mobil(Release 5.0.7 |March 21, 2001) at 11/01/2001
 07:31:31 PM,
	Serialize by POP3 Server on ester/Mobil(Release 5.0.7 |March 21, 2001) at
 11/01/2001 07:31:44 PM,
	Serialize complete at 11/01/2001 07:31:44 PM
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Thu, 1 Nov 2001, Roman Neuhauser wrote:

> > Date: Thu, 1 Nov 2001 10:54:42 -0500 (EST)
> > From: "Thomas E. Dickey" <dickey@herndon4.his.com>
> > To: Roman Neuhauser <neuhauser@mobil.cz>
> > cc: <mutt-users@mutt.org>
> > Subject: Re: color
> >
> > On Thu, 1 Nov 2001, Roman Neuhauser wrote:
> >
> > > > what was $TERM before you set rxvt.termName ?
> > >
> > >     just xterm.
> >
> > "xterm" is usually the same as "xterm-r6" (no color).
> >
> > (but "xterm-color" isn't correct - would be nice if FreeBSD installed the
> > correct termcap entries so this wasn't something I had to point out
> > periodically).
>
>     I don't say it's correct. I _don't_ know the correct value. I've seen
>     this suggested on freebsd-questions@, and it works. But if you tell me
>     the correct value, I'll be happy to change the setting.

Usually (except of course the suggestions which are secondhand or worse)
the suggestion is based on the fact that FreeBSD doesn't install a termcap
entry for anything more appropriate.

There is a termcap file distributed with rxvt and one with XFree86 xterm.
I'd start with those (preferring "rxvt" and "xterm-xfree86").  FreeBSD
uses a compiled database for termcap, iirc under /usr/share/misc.  Edit
(save the original of course) the termcap file, putting the new entries at
the beginning.  Recompile the termcap database (I don't recall the name of
the command - something like make_capdb - there is a manpage for it).

There is also a better termcap file here (but doesn't necessarily include
a few of the specialized console types for FreeBSD):

ftp://invisible-island.net/ncurses/termcap.src.gz

-- 
T.E.Dickey <dickey@herndon4.his.com>
http://invisible-island.net
ftp://invisible-island.net


--tKW2IUtsqtDRztdT--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020115082914.I393>