unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* diabling colors on tty
@ 2003-02-18 15:26 Pavel Hlavnicka
  2003-02-18 15:38 ` Brendan Halpin
  2003-02-19  8:17 ` Tim X
  0 siblings, 2 replies; 3+ messages in thread
From: Pavel Hlavnicka @ 2003-02-18 15:26 UTC (permalink / raw)



Hi all,

simple question: Is there some trick, how to disable ALL colors (except 
black and white) on text terminal, but keep all lovely colors if running 
X-windowed emacs?

(Be hard, I can use lisp quite fine :)

Thanks in advance

Pavel

-- 
Pavel Hlavnicka
Ginger Alliance
www.gingerall.cz

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: diabling colors on tty
  2003-02-18 15:26 diabling colors on tty Pavel Hlavnicka
@ 2003-02-18 15:38 ` Brendan Halpin
  2003-02-19  8:17 ` Tim X
  1 sibling, 0 replies; 3+ messages in thread
From: Brendan Halpin @ 2003-02-18 15:38 UTC (permalink / raw)


Pavel Hlavnicka <pavel@gingerall.cz> writes:

> Hi all,
> 
> simple question: Is there some trick, how to disable ALL colors
> (except black and white) on text terminal, but keep all lovely
> colors if running X-windowed emacs?

>From the command line I use "TERM=vt100 emacs -nw" (Linux/bash). 

Brendan
-- 
Brendan Halpin,  Department of Sociology,   University of Limerick,  Ireland
<mailto:brendan.halpinATul.ie>        <http://wivenhoe.staff8.ul.ie/~brendan>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: diabling colors on tty
  2003-02-18 15:26 diabling colors on tty Pavel Hlavnicka
  2003-02-18 15:38 ` Brendan Halpin
@ 2003-02-19  8:17 ` Tim X
  1 sibling, 0 replies; 3+ messages in thread
From: Tim X @ 2003-02-19  8:17 UTC (permalink / raw)


>>>>> "Pavel" == Pavel Hlavnicka <pavel@gingerall.cz> 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!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-02-19  8:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-18 15:26 diabling colors on tty Pavel Hlavnicka
2003-02-18 15:38 ` Brendan Halpin
2003-02-19  8:17 ` Tim X

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).