From owner-freebsd-questions Tue Jan 4 5:57: 6 2000 Delivered-To: freebsd-questions@freebsd.org Received: from server.baldwin.cx (ric-40.freedomnet.com [198.240.105.40]) by hub.freebsd.org (Postfix) with ESMTP id 3A5B215136 for ; Tue, 4 Jan 2000 05:57:03 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: from john.baldwin.cx (john [10.0.0.2]) by server.baldwin.cx (8.9.3/8.9.3) with ESMTP id IAA29308; Tue, 4 Jan 2000 08:55:38 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-Id: <200001041355.IAA29308@server.baldwin.cx> X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Tue, 04 Jan 2000 08:55:38 -0500 (EST) From: John Baldwin To: Jonathon McKitrick Subject: RE: color xterm and zsh Cc: freebsd-questions@FreeBSD.org Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 -- 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