iTerm2 radically changes the background colour set in Emacs
The problem is that iTerm2 shows completely wrong colour for a background colour set in Emacs customization.
See this Stackoverflow question and comments for a screenshot and a related issue with Solarized theme (I am using customized Monokai theme): https://stackoverflow.com/a/46142731/470560
- iTerm2 version: Build 3.0.15
- OS version: Mac OS X 10.12
- Attach com.googlecode.iterm2.plist here (drag-drop from finder into this window)
The root of the problem was having this background colour in my customizations:
(custom-set-variables
'(default-frame-alist
'((background-color . "#272822")
(background-mode . dark))))
Detailed steps to reproduce the problem:
- Customize Emacs with the customization from above.
- Open Emacs (or Aquamacs) in iTerm2
- See the background colour hue! Try other colours also. Apple’s Terminal.app will not do this.
What happened:
The background colour hue is #176d1a
, which is completely wrong.
What should have happened:
The background colour hue should be about #272822
(even with a slight minimum contrast setting)
Edited by Peter Hillerström