From owner-freebsd-stable Sun Apr 22 14:51:20 2001 Delivered-To: freebsd-stable@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id C872937B423 for ; Sun, 22 Apr 2001 14:51:15 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 26059 invoked by uid 100); 22 Apr 2001 21:51:14 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15075.21074.768657.819298@guru.mired.org> Date: Sun, 22 Apr 2001 16:51:14 -0500 To: John Merryweather Cooper Cc: "Robert T.G. Tan" , FreeBSD-STABLE Mailing List Subject: Re: XTERM In-Reply-To: <3AE3439A.32A86ECF@webmail.bmi.net> References: <20010422124046.B1075@cs.pdx.edu> <20010422222343.A384@cs.pdx.edu> <3AE3439A.32A86ECF@webmail.bmi.net> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Merryweather Cooper types: > "Robert T.G. Tan" wrote: > > I tried /etc/ttys: > > > > ttyv5 "/usr/X11R6/bin/xdm -nodaemon" xterm-color on secure > > > > but I didn't get the xterm-color value for TERM. You need to log out of the X session, then hup init for that to take effect. You may need to do it in the other order, or shut down xdm a second time after hupping init to get the change through everything looking at it. > I by-pass the X resource stuff (which I haven't quite figured out) and > use the following in my .shrc X resource stuff is one of the biggest problems with X. It makes the Windows Registry look sane. The X resource to set is xtermName. If you have a .Xresources and it gets loaded, that's probably the best place to put this. You'll need to reload .Xresources with xrdb for it to take effect. That way, xterm will get the information from the X server, so that xterms started on other systems displaying on yours will also get xterm-color. If you don't want to do that, you can either put it in your .Xdefaults or whatever XENVIRONMENT points to, or in a directory pointed to by XAPPRLESDIR or XUSERFILESEARCHPATH if you use one of those. > # adjust TERM to color xterm under X > # use linux Java under X > if [ $TERM = "xterm" ]; then > TERM=xterm-color; export TERM > JAVA_HOME=/usr/local/linux-jdk1.3.0; export JAVA_HOME > fi TERM should already be in the environment, so the export is redundant. I did it that way for a year or so before moving it into .Xresources. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message