From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: diabling colors on tty Date: 19 Feb 2003 19:17:23 +1100 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87n0ksofak.fsf@tiger.rapttech.com.au> References: Reply-To: timx@spamto.devnul.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045642318 6354 80.91.224.249 (19 Feb 2003 08:11:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 19 Feb 2003 08:11:58 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18lPKe-0001eD-00 for ; Wed, 19 Feb 2003 09:11:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18lPJi-0005jC-02 for gnu-help-gnu-emacs@m.gmane.org; Wed, 19 Feb 2003 03:10:58 -0500 Original-Newsgroups: gnu.emacs.help Original-Lines: 28 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: ppp1437.nsw.padsl.internode.on.net Original-X-Trace: duster.adelaide.on.net 1045641923 ppp1437.nsw.padsl.internode.on.net (19 Feb 2003 18:35:23 +1050) Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!news.mel.connect.com.au!news.ade.connect.com.au!duster.adelaide.on.net!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:110366 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6868 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6868 >>>>> "Pavel" == Pavel Hlavnicka writes: Pavel> Hi all, Pavel> simple question: Is there some trick, how to disable ALL Pavel> colors (except black and white) on text terminal, but keep all Pavel> lovely colors if running X-windowed emacs? Pavel> (Be hard, I can use lisp quite fine :) Put a section in your .emacs which turns off global-font-lock-mode if you are running on a tty or turns it on if your runing under X. I use (if (and (eq window-system 'x) (not noninteractive)) ... To set font colours to one colour under X and another when running under a term. You could possibly use the same test to turn on font lock mode under X and turn it off under a tty. Tim -- Tim Cross The e-mail address on this message is FALSE (obviously!). My real e-mail is to a company in Australia called rapttech and my login is tcross - if you really need to send mail, you should be able to work it out!