From owner-freebsd-questions Fri Jul 13 4:37: 1 2001 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 A2A1B37B407 for ; Fri, 13 Jul 2001 04:36:56 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (patr530-a146.otenet.gr [212.205.215.146]) by mailsrv.otenet.gr (8.11.1/8.11.1) with ESMTP id f6DBare25196; Fri, 13 Jul 2001 14:36:53 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.4/8.11.4) id f6DBaBK08337; Fri, 13 Jul 2001 14:36:11 +0300 (EEST) (envelope-from charon) To: "A. L. Meyers" Cc: Subject: Re: xterm-color (2nd posting) References: <20010712201512.K388-100000@consult-meyers.com> From: Giorgos Keramidas Date: 13 Jul 2001 14:36:10 +0300 In-Reply-To: "A. L. Meyers"'s message of "Thu, 12 Jul 2001 20:17:38 +0200 (CEST)" Message-ID: <86vgkxf4d1.fsf@hades.hell.gr> Lines: 51 X-Mailer: Gnus v5.7/Emacs 20.7 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 "A. L. Meyers" writes: > Hi! > > This may be such a simple, stupid question that no one has > replied yet. > > How do I set up X to get TERM=xterm-color by default? > > The standard install makes me do > > export TERM=xterm-color > > every time I open a terminal in X. You can set up the XTerm resource *termName to have this automagically changed by xterm(1) every time you fire up an xterm. With my ~/.xinitrc file being: #!/bin/sh userresources=$HOME/.Xresources usermodmap=$HOME/.Xmodmap sysresources=/usr/X11R6/lib/X11/xinit/.Xresources sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap test -f "${sysresources}" && xrdb -merge "${sysresources}" test -f "${userresources}" && xrdb -merge "${usersresources}" test -f "${sysmodmap}" && xmodmap "${sysmodmap}" test -f "${usermodmap}" && xmodmap "${usermodmap}" xset m 22/10 4 xset +dpms xset dpms 300 1200 1800 xset b 100 800 20 xset r on xset r rate 250 30 exec wmaker I can put the changes to ~/.Xresources. A part of this file looks like: % grep XTerm ~/.Xresources XTerm*background: #224477 XTerm*foreground: #ffffff XTerm*colorULMode: off XTerm*font3: -b&h-lucidatypewriter-medium-r-normal-sans-10-100-75-75-m-60-iso8859-1 XTerm*font: -b&h-lucidatypewriter-medium-r-normal-sans-12-120-75-75-m-70-iso8859-1 XTerm*termName: xterm-color -giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message