aristocratos / btop

A monitor of resources
Apache License 2.0
20.81k stars 644 forks source link

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

Closed jothi-prasath closed 1 year ago

jothi-prasath commented 1 year ago

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):

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
aristocratos commented 1 year ago

@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.

stefanos82 commented 1 year ago

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 commented 1 year ago

@stefanos82 this is with default font in gnome terminal image

imwints commented 1 year ago

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

jothi-prasath commented 1 year ago

the problem is my locale. image

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

imwints commented 1 year ago

Glad you could figure it out! 👍🏽