From owner-freebsd-questions Mon Jan 14 14:42:28 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id BF14837B402 for ; Mon, 14 Jan 2002 14:41:35 -0800 (PST) Received: from hades.hell.gr (patr530-a233.otenet.gr [212.205.215.233]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id g0EMfVY08191; Tue, 15 Jan 2002 00:41:31 +0200 (EET) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id g0ELKjE31858; Mon, 14 Jan 2002 23:20:45 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Mon, 14 Jan 2002 23:20:44 +0200 From: Giorgos Keramidas To: Anthony Campbell Cc: freebsd-questions@freebsd.org Subject: Re: Still can't get color in xterm properly. Message-ID: <20020114212044.GE31045@hades.hell.gr> References: <20020114170518.GA7846@debian.local> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2qXFWqzzG3v1+95a" Content-Disposition: inline In-Reply-To: <20020114170518.GA7846@debian.local> User-Agent: Mutt/1.3.25i 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 --2qXFWqzzG3v1+95a Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2002-01-14 17:05:18, Anthony Campbell wrote: > I can set=20 >=20 > TERM=3Dxterm-color; export TERM >=20 > 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. >=20 > Where is one supposed to put it so that it is the default for X? Since the replies that were given until now were specific to other types of terminals, and their resources will most likely be ignored by xterm(1), here is a short description of what you need. Xterm(1) when started, it queries the X server for `xterm resources'. These are pairs of `key: value' strings that can be used to customize your xterm's. The xrdb(1) program can be used to manipulate the X resource database. Each X program in its manpage describes what resources it understands. In the xterm(1) manpage we can read: RESOURCES The program understands all of the core X Toolkit resource names and classes as well as: ... termName (class TermName) Specifies the terminal type name to be set in the TERM environment variable. That is, if you set the XTerm*termName resource to a string, that string will be used as the TERM environment variable of all the xterms you start after setting it. Try this by creating a file called .Xresources in your HOME directory that contains: XTerm*termName: xterm-color and then running: % xrdb -merge .Xresources Start a new xterm(1) [so that is reads the new termName resource], and type in it: % echo $TERM It should print your new TERM value :) If you want .Xresources to be loaded every time you start X, then you can edit .xinitrc and add a line that calls xrdb: xrdb -merge .Xresources exactly like you would do in your terminal prompt. --=20 Giorgos Keramidas . . . . . . . . . keramida@{ceid.upatras.gr,freebsd.org} FreeBSD Documentation Project . . . http://www.freebsd.org/docproj/ FreeBSD: The power to serve . . . . http://www.freebsd.org/ --2qXFWqzzG3v1+95a Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) iD8DBQE8Q0us1g+UGjGGA7YRArdPAKCH/UQvXdgpGzptpNRn8wSQdtoqMQCgtvxJ iQDQtmvYgJiZdNznGByZJVc= =Ormo -----END PGP SIGNATURE----- --2qXFWqzzG3v1+95a-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message