redguardtoo / emacs.d

Fast and robust Emacs setup.
http://blog.binchen.org
GNU General Public License v3.0
2.39k stars 619 forks source link

Emacs 28.2 term terminal only support 8 colors. #1011

Closed sbwcwso closed 1 year ago

sbwcwso commented 1 year ago

I use M+x, term to open zsh, but the color number is only 8 colors, which is not enough to display the powerlevel10k them prefectly.

I have tried to set TERM=xterm-256color , but the disply in the emacs is very wired.

image

The normal looking should be like this:

image

redguardtoo commented 1 year ago

I have no idea. Set TERM won't help anyway. If the teminal supports 256 color, it usually just works out of box.

sbwcwso commented 1 year ago

I have no idea. Set TERM won't help anyway. If the teminal supports 256 color, it usually just works out of box.

Thank you for replay.

I give up, I use the .zshrc file to detect if it is in the emacs, then I set two different theme. Just like this.

image

Enough for me.