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

[BUG] celsius and graph symbols not showing in tmux #580

Closed
jothi-prasath opened this issue Jul 21, 2023 · 6 comments
Closed

[BUG] celsius and graph symbols not showing in tmux #580

jothi-prasath opened this issue Jul 21, 2023 · 6 comments
Assignees

Comments

@jothi-prasath
Copy link

Describe the bug

the celsius symbols and graph symbols are not displaying properly in tmux but working fine without tmux

To Reproduce

start tmux and open btop

Screenshots

btop without tmux:
image

btop in tmux:
image

Info (please complete the following information):

  • btop++ version: 1.2.13
  • Architecture: x86_64
  • Platform: Linux
  • (Linux) Kernel: 6.1.0-9-amd64
  • release version: debian 12
  • Terminal used: alacritty, gnome terminal
  • Font used: default

Additional context

contents of ~/.config/btop/btop.log

2023/07/21 (17:06:55) | ===> btop++ v.1.2.13
2023/07/21 (17:06:55) | DEBUG: Starting in DEBUG mode!
2023/07/21 (17:06:55) | INFO: Logger set to DEBUG
2023/07/21 (17:06:55) | DEBUG: Setting LC_ALL=en_US.UTF-8
2023/07/21 (17:06:55) | INFO: Running on /dev/pts/1
2023/07/21 (17:07:01) | INFO: Quitting! Runtime: 00:00:06
@jothi-prasath jothi-prasath added the bug Something isn't working label Jul 21, 2023
@aristocratos
Copy link
Owner

@jothi-prasath
Read the README.md:

Notice (Text rendering issues)

If you are having problems with the characters in the graphs not looking like they do in the screenshots, it's likely a problem with your systems configured fallback font not having support for braille characters.

See [Terminess Powerline](https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/Terminus/terminus-ttf-4.40.1) for an example of a font that includes the braille symbols.

See comments by @sgleizes https://github.com/aristocratos/bpytop/issues/100#issuecomment-684036827 and @XenHat https://github.com/aristocratos/bpytop/issues/100#issuecomment-691585587 in issue #100 for possible solutions.

If text are misaligned and you are using Konsole or Yakuake, turning off "Bi-Directional text rendering" is a possible fix.

Characters clipping in to each other or text/border misalignments is not bugs caused by btop, but most likely a fontconfig or terminal problem where the braille characters making up the graphs aren't rendered correctly.

Look to the creators of the terminal emulator you use to fix these issues if the previous mentioned fixes don't work for you.

btop outputs the same UTF-8 characters regardless of terminal used, if it's not displaying correctly it's because issues in your terminal/tmux/system configuration.

Read the tmux documentation or open a issue in https://github.com/tmux/tmux if you think it's a bug.
It's however not a bug in btop, if it was, all terminals would have the same issue.

@aristocratos aristocratos removed the bug Something isn't working label Jul 21, 2023
@stefanos82
Copy link

I'm on GNU / Linux Debian testing 64-bit fully updated and my xfce4-terminal displays everything normally with tmux:

image

I doubt you are using default fonts; they look very cartoon-ish to my eyes.

Use different fonts and try again; I personally use Fantasque Sans Mono which I find quite suitable for programming, especially with Vim.

@jothi-prasath
Copy link
Author

@stefanos82 this is with default font in gnome terminal
image

@imwints
Copy link
Contributor

imwints commented Jul 21, 2023

I can't reproduces it either with empty alacritty and tmux configs

@jothi-prasath
Copy link
Author

the problem is my locale.
image

First i have english India after i switched to english United States the problem is solved

@imwints
Copy link
Contributor

imwints commented Jul 21, 2023

Glad you could figure it out! 👍🏽

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

4 participants