aristocratos / bpytop

Linux/OSX/FreeBSD resource monitor
Apache License 2.0
10.16k stars 399 forks source link

Garbled colors in bpytop via mosh #360

Closed jakobbg closed 3 years ago

jakobbg commented 3 years ago

This is a complex issue...

  1. Launch tmux on MacOS M1 11.6 (20G165)
  2. ssh from MacOS M1 to FreeBSD 13.0-RELEASE-p4
  3. mosh from FreeBSD to Ubuntu 20.04.3 LTS (Focal Fossa)
  4. run bpytop (10.0.61) and experience garbled colors

If I replace step 3 with "ssh from FreeBSD to Ubuntu", the colors in bpytop renders nice

Nice colors (using ssh): image

Garbled colors (using mosh): image

Will gladly provide more debug info upon request! :-D

aristocratos commented 3 years ago

@jakobbg You should redirect this issue at mosh

I can't control how mosh handles the escape sequences generated by bpytop. Unless you haven't already disabled truecolor in the options, that should probably be a first step since mosh doesn't look to have truecolor support.

jakobbg commented 3 years ago

Will do. Thanks for the quick reply!

JackLau1222 commented 5 months ago

i have a same issue when i use the native shell Terminal on MacOS M1 Pro

image

but if i use the 3rd terminal iTerm, it's work well

image

and the shell is always zsh