Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Jan 2000 08:55:38 -0500 (EST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Jonathon McKitrick <jcm@dogma.freebsd-uk.eu.org>
Cc:        freebsd-questions@FreeBSD.org
Subject:   RE: color xterm and zsh
Message-ID:  <200001041355.IAA29308@server.baldwin.cx>
In-Reply-To: <Pine.BSF.4.21.0001040347290.45269-100000@dogma.freebsd-uk.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 04-Jan-00 Jonathon McKitrick wrote:
> Hi all,
> i had a nice setup where in my .bashrc i define TERM as xterm-color, but
> in .profile it is cons25.  This way i get color for midnight commander
> whether i am running on a console or in an xterm window.  I'm trying to do
> this under zsh, but it isn't working.  I either get a black and white
> xterm or garbage characters in a console display.  I've tried various
> combinations of TERM settings in .zprofile and .zshrc, but i must be
> overlooking something.  Can someone tell me what it is?

Why not:

if [ "X$TERM" = "Xxterm" ]; then
   TERM=xterm-color ; export TERM
fi

---

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001041355.IAA29308>