brujoand / sbp

Simple Bash Prompt (SBP) is a bash prompt, which strives to be simple. But it isn't. But it looks kind of nice. I think.
MIT License
329 stars 25 forks source link

Powerline layout In Termux showing wrong charaterset #85

Closed akoerner closed 4 years ago

akoerner commented 4 years ago

**Describe the bug Charaters in the powerline layout being displayed are not intended charaters.

To Reproduce Steps to reproduce the behavior:

  1. Under android in termux clone the repository
  2. Run the bin/install script
  3. set the layout to powerline

Expected behavior should work without installing fonts or external dependencies.

Screenshots https://imgur.com/a/cfu0kTr

Environment (please complete the following information):

➜ bash --version GNU bash, version 5.0.11(1)-release (aarch64-unknown-linux-android) Copyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html

This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Additional context

~  sbp  bin   master  last: 0m 0s  echo $LANG en_US.UTF-8

Add any other context about the problem here.

brujoand commented 4 years ago

should work without installing fonts or external dependencies.

The powerline symbols can't work without patched fonts, except if the terminal knows how to draw them like Kitty for instance. From the screenshot it looks like you are using a font which already has values for the characters used by powerline, which font is this?

I'd try something like this https://github.com/adi1090x/termux-style just to verify. It could be that the font you are using do support the powerline symbols but have different values for them, in that case you'd need to change the SBP config.

spamegg1 commented 4 years ago

@akoerner https://github.com/powerline/fonts Might want to try with some of the fonts from here. I had the same problem on bash/gnome-terminal and this fixed it.

SuperSandro2000 commented 4 years ago

I don't use any patched font but just installed the nerd fonts symbols font file.

brujoand commented 4 years ago

Aye, so basically you'll either need fonts that support powerline glyphs, or a terminal that can draw the glyphs manually if you want to use the powerline layout unfortunatly.