From owner-freebsd-questions Mon Jan 14 23:19:22 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mobil.cz (diana.mobil.cz [195.39.16.12]) by hub.freebsd.org (Postfix) with ESMTP id 744A237B404 for ; Mon, 14 Jan 2002 23:19:13 -0800 (PST) Received: from ester.mobil.cz (ester.mobil.cz [194.213.62.23]) by mobil.cz (8.11.6/8.11.0) with ESMTP id g0F7JBe21798; Tue, 15 Jan 2002 08:19:12 +0100 Received: from roman.mobil.cz ([10.2.0.89]) by ester.mobil.cz (Lotus Domino Release 5.0.7) with ESMTP id 2002011508165360:2959 ; Tue, 15 Jan 2002 08:16:53 +0100 Received: (from roman@localhost) by roman.mobil.cz (8.11.6/8.11.6) id g0F7TF532002; Tue, 15 Jan 2002 08:29:15 +0100 (CET) (envelope-from neuhauser@mobil.cz) X-Authentication-Warning: roman.mobil.cz: roman set sender to neuhauser@mobil.cz using -f Date: Tue, 15 Jan 2002 08:29:14 +0100 From: Roman Neuhauser To: Anthony Campbell Cc: freebsd-questions Subject: Re: Still can't get color in xterm properly. Message-ID: <20020115082914.I393@roman.mobil.cz> Mail-Followup-To: Anthony Campbell , freebsd-questions References: <20020114170518.GA7846@debian.local> <20020114184637.F393@roman.mobil.cz> <20020114192638.GE8252@debian.local> Mime-Version: 1.0 In-Reply-To: <20020114192638.GE8252@debian.local> User-Agent: Mutt/1.3.23i X-MIMETrack: Itemize by SMTP Server on ester/Mobil(Release 5.0.7 |March 21, 2001) at 01/15/2002 08:16:53 AM, Serialize by Router on ester/Mobil(Release 5.0.7 |March 21, 2001) at 01/15/2002 08:17:00 AM, Serialize complete at 01/15/2002 08:17:00 AM Content-Type: multipart/mixed; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Date: Mon, 14 Jan 2002 19:26:39 +0000 > From: Anthony Campbell > To: Roman Neuhauser > 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 > > > 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 ; 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 ; 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" Reply-To: To: Roman Neuhauser cc: Subject: Re: color In-Reply-To: <20011101182056.C9584@roman.mobil.cz> Message-ID: 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" > > To: Roman Neuhauser > > cc: > > 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 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