From owner-freebsd-stable Tue May 7 15:33:35 2002 Delivered-To: freebsd-stable@freebsd.org Received: from lindt.urgle.com (lindt.urgle.com [62.49.202.23]) by hub.freebsd.org (Postfix) with ESMTP id AA27437B404 for ; Tue, 7 May 2002 15:33:27 -0700 (PDT) Received: from mike by lindt.urgle.com with local (Exim 3.33 #1) id 175DWF-0007gr-00; Tue, 07 May 2002 22:33:15 +0000 Date: Tue, 7 May 2002 23:33:15 +0100 From: Mike Bristow To: Lucky Green Cc: freebsd-stable@freebsd.org Subject: Re: xterm and colour (Was: cvs commit: ports/mail/mutt-devel...) Message-ID: <20020507233314.A29484@lindt.urgle.com> References: <002301c1f3ff$8c52a100$c33a080a@LUCKYVAIO> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <002301c1f3ff$8c52a100$c33a080a@LUCKYVAIO>; from shamrock@cypherpunks.to on Sat, May 04, 2002 at 11:38:59PM -0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, May 04, 2002 at 11:38:59PM -0700, Lucky Green wrote: > [Quotes from various folks about FreeBSD's "xterm" not supporting color > elided]. Actually, I think that TERM is broken. What you actually want is a list of termcap/terminfo entries that would work in a preference order. So, instead of saying: TERM=xterm-xfree86 or TERM=xterm-solaris or whathaveyou, you could say: TERMS=xterm-freebsd;xterm-xfree86;xterm-color;xterm;vt100 and have whatever machine you connected to use the first entry in the list that it knows about. Of course, you'd want to have a sensible fallback for situations where the remote machine doesn't have this wonderful scheme, so you'd have to set TERM=xterm (or TERM=vt100 when everyone uses a curses which does this and every remote access application passes it on) as a fallback. This is so obvious to me, that I'm sure that everyone has thought of it and I'm missing some obvious flaw. Please tell me what it is, or I'll go bug the ncurses maintainer(s) and see if they'll accept patches for it. Then all I'll have to do is worry about the applications ;-) -- You can't do maths without e -- David Walters To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message