athityakumar / colorls

A Ruby gem that beautifies the terminal's ls command, with color and font-awesome icons. :tada:
MIT License
4.83k stars 379 forks source link

Icons do not appear on remote terminal #193

Open anselal opened 6 years ago

anselal commented 6 years ago

Description

Icons do not appear on remote terminal connection using MobaXterm

System Info

Screenshots

2018-05-31_11h16_46

The icons appear correctly when I connect via remote desktop to my machine

2018-05-31_11h22_02

avdv commented 6 years ago

MobaXterm needs to be able to display the characters on your local machine, so you need to have the fonts installed and selected in MobaXterm.

anselal commented 6 years ago

On my windows machine (client) I have installed the DejaVu Nerd Fonts but I cannot select them in MobaXterm (they don't show up). Am I doing something wrong while installing them ? I installed the DejaVu Powerline font and it works with MobaXterm, but don't work in colorls. I have also installed the Hack Nerd font but the still the same, does not appear in the list of fonts in MobaXterm.

avdv commented 6 years ago

This post https://superuser.com/questions/1134268/mobaxterm-powerline-font-issue/1251965 outlines the steps to get mobaxterm to display the special characters. In the end, this is not directly related to colors at all.

anselal commented 6 years ago

As I said, I managed to add a patched powerline font but not a nerd font. Even after restarting MobaXterm the fonts won't show up in the list...

I know that this in not directly related to colorls but a help would be nice. This also won't work with putty. So it is not only MobaXterm's problem. Actually MobaXterm is based on putty.

Is there another terminal emulator I can use on windows besides the ones mentioned above ?

avdv commented 6 years ago

This may help: https://github.com/powerline/fonts/issues/35

Otherwise, better ask elsewhere -- assumingly very few of the people here use Windows, we cannot give you any better guidance...

anselal commented 6 years ago

thank you but you keep redirecting me to the powerline fonts but the instructions clearly say to use nerd fonts..

If you feel that there is nothing more to do here you can close this issue..

avdv commented 6 years ago

thank you but you keep redirecting me to the powerline fonts but the instructions clearly say to use nerd fonts..

Your problem is with fonts + putty on Windows, so you should look for solutions in that direction and how other people have solved it. An issue being specifically about powerline fonts is secondary, usually it applies to Nerd fonts as well.

If you feel that there is nothing more to do here you can close this issue..

You can close it yourself. Or doesn't it work?

anselal commented 6 years ago

To be honest I don't like your sarcasm...

The powerline fonts work great with MobaXterm on Windows. The problem is with the nerd fonts..

avdv commented 6 years ago

To be honest I don't like your sarcasm...

I did not mean to be sarcastic. Why did you think that? Anyway, I cannot help you any better.

anselal commented 6 years ago

You can close it yourself. Or doesn't it work?

It sounded a bit sarcastic..

Thank you for your help !!!

thmsaurel commented 5 years ago

I don't know if you still have your issue. You can use hack nerd font inside MobaXterm if you authorize "variable-pitch fonts" inside Terminal Settings > Window > Appearance. It's only work on the current session and the result isn't so good but it's still work.

anselal commented 5 years ago

I still jave this issue. I will try it.

Στις Παρ, 19 Οκτ 2018, 12:27 ο χρήστης Thomas Aurel < notifications@github.com> έγραψε:

I don't know if you still have your issue. You can use hack nerd font inside MobaXterm if you authorize "variable-pitch fonts" inside Terminal Settings > Window > Appearance. It's only work on the current session and the result isn't so good but it's still work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/athityakumar/colorls/issues/193#issuecomment-431302990, or mute the thread https://github.com/notifications/unsubscribe-auth/AIU__EGmhol0BnUwjXqAbPn0IxXne9lLks5umZscgaJpZM4UUpB_ .

avdv commented 5 years ago

Just make sure to install the "Windows" variants of the nerd font you want to use.

The original powerline font probably does not work since it does not include all the extra font awesome icons and so on, AFAIK.

Maybe MobaXterm has the same limitation as mintty where you can only select a very limited set of fonts via the font chooser dialog: https://github.com/mintty/mintty/issues/638

anselal commented 5 years ago

I already did all this without any success. Does it work 4 U ?

avdv commented 5 years ago

I don't have a Windows machine.

Did you try another SSH client, to rule out mobaXterm as the problem?

Maybe it's just a wrong encoding used, did you configure anything regarding the character encoding for your session in mobaXterm? Still, is there a setting somewhere and is it set to UTF-8? And at your remote end too? (Run locale remotely)

thmsaurel commented 5 years ago

I've install the windows variant but the issue remain. I also use a mintty (on windows) and i have no issue with it.

The issue is the following one: mobaxterm doesn't recognize Hack Nerd Font as a font with a fixed size (that stupid but... anyway). I've try to install the windows version, the mono windows version, but nothing work except the little tweak i say earlier. It's not ideal but if you want to use a nerd font font, you have a way.

anselal commented 5 years ago

I tried all the above but still no result

Στις Παρ, 19 Οκτ 2018, 21:13 ο χρήστης Thomas Aurel < notifications@github.com> έγραψε:

I've install the windows variant but the issue remain. I also use a mintty (on windows) and i have no issue with it.

The issue is the following one: mobaxterm doesn't recognize Hack Nerd Font as a font with a fixed size (that stupid but... anyway). I've try to install the windows version, the mono windows version, but nothing work except the little tweak i say earlier. It's not ideal but if you want to use a nerd font font, you have a way.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/athityakumar/colorls/issues/193#issuecomment-431451547, or mute the thread https://github.com/notifications/unsubscribe-auth/AIU__NN_odQLnWOUYwk4GZZsPWuhngbWks5umhZLgaJpZM4UUpB_ .

zhougy0717 commented 5 years ago

I finally find the idea. The MobaXterm doesn't recognize True Type font. So you have to install an otf font. Then you can select the newly installed font from the list. The official release of SauceCodePro Nerd Font doesn't include a .otf file. Fortunately, there are bunch of online service we can use to convert from a .ttf file to .otf. Then just double click and install. That's all. Enjoy SauceCodePro in fancy MobaXTerm.

nincode commented 3 years ago

For what it's worth - patched CascadiaCode (CaskaydiaCove NF) works in Windows Terminal, but doesn't work in MobaXTerm. Looks like something is up with Moba.

https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/CascadiaCode

yyyang91 commented 3 years ago

select one session, click right mouse button, edit session -> terminal settings -> Terminal font settings. then choose your nerd font.

faizan-torstone commented 1 month ago

I finally find the idea. The MobaXterm doesn't recognize True Type font. So you have to install an otf font. Then you can select the newly installed font from the list. The official release of SauceCodePro Nerd Font doesn't include a .otf file. Fortunately, there are bunch of online service we can use to convert from a .ttf file to .otf. Then just double click and install. That's all. Enjoy SauceCodePro in fancy MobaXTerm.

This worked for me. Leaving it here for anyone else encountering this issue.