[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Working with colors in --batch mode
From: |
Eli Zaretskii |
Subject: |
Re: Working with colors in --batch mode |
Date: |
Sun, 25 Dec 2022 20:22:07 +0200 |
> Date: Sun, 25 Dec 2022 20:05:59 +0200
> From: Eli Zaretskii <eliz@gnu.org>
>
> Emacs doesn't (and cannot, I think) load X colors unless it
> initializes the X display, and that doesn't happen in batch sessions.
> Basically, batch sessions behave like a colorless TTY session.
Btw, I don't really understand why you need the X machinery for this.
Doesn't tty-color-standard-values do the job?
$ emacs -batch --eval "(message \"%s\" (tty-color-standard-values
\"#abcdef\"))"
=> (43947 52685 61423)