unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: colored fonts in batch mode
Date: Thu, 08 May 2008 17:18:28 +0300	[thread overview]
Message-ID: <uwsm4nakr.fsf@gnu.org> (raw)
In-Reply-To: <m21w4dass7.fsf@nb-dominik2.science.uva.nl>

> 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	other threads:[~2008-05-08 14:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-08  9:15 colored fonts in batch mode Carsten Dominik
2008-05-08 11:22 ` Jason Rumney
2008-05-08 12:23   ` Carsten Dominik
2008-05-08 14:18     ` Eli Zaretskii [this message]
     [not found]     ` <mailman.11327.1210256313.18990.help-gnu-emacs@gnu.org>
2008-05-08 15:42       ` Dan Espen
2008-05-09 13:45         ` Carsten Dominik
2008-05-08 15:45     ` Jason Rumney
2008-05-08 16:02 ` Johan Bockgård
2008-05-09 13:46   ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uwsm4nakr.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).