From owner-freebsd-questions Sat Aug 5 8:44:28 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mta02-svc.ntlworld.com (mta02-svc.ntlworld.com [62.253.162.42]) by hub.freebsd.org (Postfix) with ESMTP id EFF9137B5DB for ; Sat, 5 Aug 2000 08:44:24 -0700 (PDT) (envelope-from mark@ukug.uk.freebsd.org) Received: from parish.my.domain ([62.253.84.226]) by mta02-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000805164332.GKJ3760.mta02-svc.ntlworld.com@parish.my.domain>; Sat, 5 Aug 2000 16:43:32 +0000 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id QAA01902; Sat, 5 Aug 2000 16:44:17 +0100 (BST) (envelope-from mark) Date: Sat, 5 Aug 2000 16:44:16 +0100 From: Mark Ovens To: David@SkytrackerCanada.com Cc: bsd Subject: Re: Subject: setting of TERM variable in X Message-ID: <20000805164416.E254@parish> References: <398B43E8.FD986CCC@www3.pacific-pages.com> <20000805011750.A239@parish> <398C2EC4.91146CF6@www3.pacific-pages.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <398C2EC4.91146CF6@www3.pacific-pages.com>; from David@www3.pacific-pages.com on Sat, Aug 05, 2000 at 11:12:04AM -0400 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Aug 05, 2000 at 11:12:04AM -0400, David Banning wrote: > On review - I realize my problem was not from a standard $TERM setting > but rather when I "su -" to root - then TERM is set to 'cons25' > Well, I created a file .Xdefaults and put 'XTerm*TermName: xterm-color' > in it > as you suggested - which does not work, > > but I realize now that since my question was wrong - maybe your answer > won't work. > Let me get this right. You start X and an xterm as a normal user and $TERM is set to ``xterm'', yes? You then ``su -'' to root and $TERM is now ``cons25''? If so then that's not what happens here: /usr/marko{115}% echo $TERM xterm-color /usr/marko{116}% su - Password: /usr/root{101}# echo $TERM xterm-color /usr/root{102}# Can you post what the above shows on your machine? > > > Mark Ovens wrote: > > > > On Fri, Aug 04, 2000 at 06:30:00PM -0400, David Banning wrote: > > > > > > My TERM variable is still set to cons25 even when I am in X > > > How can I change to xterm - (other than doing it manually) > > > > > > Is there a .profile type script for X which I could > > > 'setenv TERM xterm' ? > > > > Try adding this to ~/.Xdefaults or ~/.Xresources: > > > > XTerm*TermName: xterm-color > > > > remove ``-color'' if you really want a mono xterm :) > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- If I buy a copy of WinDelete, and it doesn't delete Windows, am I entitled to my money back? ________________________________________________________________ 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark mailto:marko@freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message