dbordak / telephone-line

A new implementation of Powerline for Emacs
GNU General Public License v3.0
555 stars 50 forks source link

Separator issues between GUI and Terminal Emacs #16

Open dbordak opened 9 years ago

dbordak commented 9 years ago

Things can get kinda screwy if you have both a GUI and a Terminal emacs running on the same server.

gagbo commented 4 years ago

I'm on doom-emacs (on top of emacs 27 compiled from source on ubuntu 18.04 bionic), and currently the line is just not rendered (a plain line probably with modeline background color) in TUI emacs when I use emacsclient (the server has been started by the GUI emacsen invocation before).

Do you have any idea about how a fallback could be implemented to handle this ? Maybe a hook could be used to make relevant calls to display-graphic-p ?

gagbo commented 4 years ago

Auto answer : the fallback mechanism was already implemented, just not used in the bundled separators. This has been the objective of #111

ryukinix commented 4 years ago

How I can enable the behavior provided in #111? I'm still having this issue:

TUI

image

GUI

image

Environment

Env Version
Emacs 25.2.2
telephone-line 20200516.2102
Linux Kernel 4.15.0
Linux Distro Mint 19.1
gagbo commented 4 years ago

It has been merged, weird that you still have the issue :(

I've used my fork for long enough that I may have not correctly upstreamed my changes but it looked fine on the diff. i.e you should have a > as separator

dbordak commented 4 years ago

@ryukinix There's still a separator rendered, even though it's obviously incorrect, so this looks like you're using a font without powerline support. If you're using terminal Emacs, you need a font with powerline support.

ryukinix commented 4 years ago

@dbordak nice catch! You are totally right. That indeed fixed my problem! I was using the Hack font without being patched for powerline, so downloading from https://github.com/powerline/fonts/blob/master/Hack and replacing it did the trick. Now worked flawless!

image

Thank you, @dbordak and @gagbo ! :D