help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: colored fonts in batch mode


From: Eli Zaretskii
Subject: Re: colored fonts in batch mode
Date: Thu, 08 May 2008 17:18:28 +0300

> From: Carsten Dominik <dominik@science.uva.nl>
> Date: Thu, 08 May 2008 14:23:36 +0200
> Distribution: world
> 
> > (set-frame-parameter nil 'display-type 'color)
> > (defun display-color-cells (&optional display)
> >   "Fake hicolor display"
> >   65536)
> 
> Hmmm, I see where you are heading.  However, in batch mode,
> set-frame-parameter does not seem to be defined as a function....  Also
> a (require 'frame) does not seem to help.
> 
> Any further ideas?

How about using the --color=NUMBER command-line switch, does this
help in any way?  E.g., try with 8 as NUMBER.

I must say that what you are trying to do might simply be impossible
with Emacs, as Emacs uses frame-type specific methods to turn colors
on and off, so it needs to know what kind of frame is it dealing with.

IOW, you are trying to piggy-back on the Emacs display engine, so you
need to play by its rules.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]