Closed ylorn closed 3 years ago
See https://gist.github.com/hlissner/8e667f71da070951b1569be0eceb6a89 for a solution. Sorry for the gist; this solution was pulled out of our Doom Emacs Discourse server (which hasn't been published yet).
This issue is a duplicate of hlissner/doom-emacs#3761 and is caused by using solaire-mode in a terminal frame spawned from the daemon.
FWIW in case anyone else ends up here - The wiki advice says:
This advice only applies to Emacs 26.x. True color support is built into 27.1+ and newer.
but I was seeing blue backgrounds in emacsclient 27.1. After adding a 24bit terminfo and setting TERM=xterm-24bit, my emacsclient terminal colour are all fixed š¤·āāļø
Setup
Doom Info
Shell Info
~/.doom.d/config.el
Problem
Steps to Reproduce
/Applications/Emacs.app
M-x server-start
/System/Applications/Utilities/Terminal.app
emacsclient -nw -t /path/to/file
Observation
Comparison
the same file opened by
emacsclient -nw -t
(left) v.s.emacsclient -c
(right)Error Message
When opening the file through
emacsclient -nw -t /path/to/file
, the emacs produces the following message:What confuses me is the last line:
Because I am under the impression that when
bg
(orbg-alt
) isnil
, it becomes transparent and display whatever color beneath it. But apparently, the file opened in the terminal has a background color of #21242b instead of being transparent.Fixes Attempted
I tried both above but still can not tackle this problem.