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

The very last character looks ugly #7

Closed
szwed opened this issue Aug 8, 2013 · 7 comments
Closed

The very last character looks ugly #7

szwed opened this issue Aug 8, 2013 · 7 comments

Comments

@szwed
Copy link

szwed commented Aug 8, 2013

sexybash

OS: 3.2.0-29-generic #46-Ubuntu
Terminal: Putty/SuperPutty

@twolfson
Copy link
Owner

twolfson commented Aug 8, 2013

Your font might not support all of the characters. What font are you using?

I am using Anonymous Pro. Do you see that error if you try it out?

http://www.marksimonson.com/fonts/view/anonymous-pro

@szwed
Copy link
Author

szwed commented Aug 9, 2013

Actually, I was thinking about introducing the prompt on 40-50 Ubuntu servers used by developers as build machines. I assumed that the sexy-bash-prompt will work there out of the box, there is nothing mentioned in the documentation about the need of additional fonts installation... and I can't do that as the new font might break something else (for instance: user specific prompts)

As far as I know, Ubuntu uses: http://font.ubuntu.com/

Is there a chance that the deafult Ubuntu font will be supported? :)

@twolfson
Copy link
Owner

twolfson commented Aug 9, 2013

SSH sessions do not load fonts from remote machines. They send character codes back and forth between the local terminal and remote machine. The codes sent back are displayed in a terminal emulator, in your case PuTTY.

Also, please verify PuTTY is using the Ubuntu font (your screenshot does not seem to be at a glance; there are serifs on a and x which don't appear in any Ubuntu flavors). I will look into using PuTTY + Ubuntu font some time by next Friday.

@twolfson
Copy link
Owner

Alright, I have looked into this. The problem is PuTTY, Windows, and the character choices I have made.

I have verified this by:

  1. Using ievms to get a Windows 7 VM up and running
  2. Download PuTTY and SSH to the VM's parent machine
  3. Tried out all fonts including Ubuntu Mono which I downloaded. None of them worked.
  4. SSH'd on normal machine and tried out Ubuntu Mono. It worked.

I tried both PuTTY and superputty but both use PuTTY for the SSH session; superputty is a wrapper for the GUI related features

Windows screenshots:

selection_056

Linux screenshots:

selection_058

@twolfson
Copy link
Owner

It seems that Windows loses the unfilled triangles but could potentially support all characters. The empty hexagons are not visible in the raw GitHub view of the prompt:

selection_060

@twolfson
Copy link
Owner

Unfortunately, there is no way to detect if an SSH session will/will not support a character. The session only knows about the local device and nothing about the remote device that is performing the SSH.

Some options for you:

I will add a note to the README about lack of Windows SSH support.

@szwed
Copy link
Author

szwed commented Aug 13, 2013

Thanks for the very detailed clarification!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants