Skip to content
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

xterm multiple font support #742

Closed
lonkaars opened this issue Mar 30, 2019 · 8 comments
Closed

xterm multiple font support #742

lonkaars opened this issue Mar 30, 2019 · 8 comments
Labels
S: Stale This issue had no activity for two months T: Bug

Comments

@lonkaars
Copy link

xterm multiple font support

I cant use multiple fonts in xterm, so I have to use hterm, but that has issues too:

fontend comparison:

As you can see, xterm doesn't support multiple fonts as it defaulted to the same as no font.
I want to use xterm because hterm doesn't render pipe characters properly with the ssh plugin...

Example 1, pm2 list:

this renders properly over ssh with the tab launched from the ssh plugin;

Example 2, pm2 monit:

hyper on the left, terminus on the right. Hyper and terminus both look fine when launching ssh manually, but terminus' ssh plugin doesn't render the pipes correctly in this example.

Is this an unsupported feature of xterm or am I doing something wrong?
@Eugeny Eugeny added the T: Bug label Mar 30, 2019
@Eugeny
Copy link
Owner

Eugeny commented Mar 30, 2019

xterm indeed doesn't support font fallback - opened xtermjs/xterm.js#1983

As a workaround, here's Consolas with Powerline characters patched in: https://github.com/Znuff/consolas-powerline

The borders in pm2 are however not related to this - it means pm2 is not detecting Unicode support in the terminal. Compare your environment when connecting from Hyper vs when connecting from Terminus

GitHub
An updated Consolas for Powerline font. This works with the new vim-airline, too. - Znuff/consolas-powerline

@dgcliff
Copy link

dgcliff commented May 7, 2019

Looks like xtermjs/xterm.js#1983 was closed because XTerm does support fallback with fontFamily. It'd be nice to have this implemented so that Segoe UI Emoji could be used in windows 10 to display emoji.

@black-desk
Copy link

I may have the same problem on win10. Using the font in the link above which name Consolas NF, my termintus look like this. Poor English, forgive me.TAT
image

@black-desk
Copy link

image

@black-desk
Copy link

InkedTerminus_LqlGb8wTnE_LI

@lonkaars
Copy link
Author

@black-desk That's not an issue with terminus itself. In a terminal, text can be black, but if the background is black it's seen as transparent. The way powerline works in your screenshot is foreground black, background blue, so you can see the black. I solved this issue with an edit of agnoster.theme, making the first portion of the line grey instead of black. If you want to change it, you can look into this

@black-desk
Copy link

@lonkaars It seem's the best way to solved this issue that getting my terminal's background color to black. I just want to know can this little black triangle be transparent, thank you.

@stale
Copy link

stale bot commented Jul 10, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks unless you comment.
Thank you for your contributions.

@stale stale bot added the S: Stale This issue had no activity for two months label Jul 10, 2019
@stale stale bot closed this as completed Jul 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: Stale This issue had no activity for two months T: Bug
Projects
None yet
Development

No branches or pull requests

4 participants