New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
emacsclient in terminal completely unreadable. #60
Comments
Does it behave properly when you do I think what is happening is that the same set of color definitions are being used across all frames, regardless of whether they are GUI or terminal. I can think of a couple workarounds until I fix this properly:
I think there are two things that need to be done to handle this correctly:
|
It works, in the sense that my colors are the same as in the parent
This one works.
Also works, but colors sucks :( Prefer not to.
I have pretty basic understanding of emacs faces, but as far as I can (defface foo As we are on this, I believe solarize should define a set of 16 faces It's really inconvenient to customize colors now. Suppose some package (setq foo-face solarize-red) What do you think? |
Well, solarized faces are a bit more than 16 due to formating differences. One can use :inherit face attribute to define others based on the basic 16th. |
I am actually planning to use conditional faces solve the emacsclient issue, and also to unify solarized-dark and solarized-light into a single theme. That way different frames can use different modes (e.g., the light mode in the GUI and the dark mode in tty emacsclients). And if you have emacsclients running in both 16- and 256-color terms, each will use the correct colors. The move away from solarized-termcolors was to allow Solarized to automatically use the right set of colors in different terminals, however it interacted badly with emacsclient. But the conditional faces are a change that needed to be made anyway, and this emacsclient breakage has just forced my hand. I don't think defining faces to represent the colors will work, because there are way more than 16 – a face combines foreground color, background color, and many formatting options. I do want to make it easier to customize package faces, but I'm not quite sure what the best approach is yet. However, I am happy to merge Solarized faces for different packages into the repo, so if you do edit the source to make them work, please feel free to submit a patch. |
I don't suppose there's any progress on this? I'm having to do a lot of reloads of the theme to get emacsclient -t to work... |
I wonder if there's any progress?? |
I currently have this in my .emacs, which reloads the theme whenever I'm using a console frame. It's not pretty, but it makes emacsclient -t usable for me. ; Work around broken solarized colours in emacsclient -t by reloading the theme
; whenever a frame is create/deleted and when the server is done editing
(defun thj-reload-solarized (frame)
(select-frame frame)
(load-theme 'solarized-dark))
(defun thj-reload-solarized-on-delete (&optional frame)
(load-theme 'solarized-dark))
(add-hook 'delete-frame-functions 'thj-reload-solarized-on-delete)
(add-hook 'server-done-hook 'thj-reload-solarized-on-delete)
(add-hook 'after-make-frame-functions 'thj-reload-solarized) |
Hello, I found a simple hook, which works for me.
|
The unified theme ( |
Hi Greg,
Previously I was setting solarize-termcolors to 256 and I could use GUI emacs and emacsclient properly. Now I don't see this option anymore. When I run emacsclient (server being GUI) I am stuck with this screen
This is not with default terminal colours. But even if I set my xterm palet to solorised (which works for all other aplications) my emacsclient display is still unreadable. The key is that the color3 is used as a background.
Any ideas? Is there a way to use degraded termcolors now?
The text was updated successfully, but these errors were encountered: