Giter Club home page Giter Club logo

Comments (6)

allykzam avatar allykzam commented on May 8, 2024 1

@bakeiro: If you're willing to try another terminal emulator, I've had pretty good luck using Windows Terminal with Courier New or Consolas (the font used by the default Ubuntu terminal). Aside from bar charts, everything looks fine in cmder (takes a little more setup to get WSL working) if you can't use Windows Terminal.

Here's a screenshot of Sampler running in Windows Terminal with Courier New:

image

from sampler.

sqshq avatar sqshq commented on May 8, 2024

Hi @bakeiro,
Could you please attach a screenshot and you config file?

Thank you.

from sampler.

bakeiro avatar bakeiro commented on May 8, 2024

Sure!
img: https://imgur.com/a/QiUrVD3
config (it's your example config, so I guess has nothing to do but here it is)

Config

runcharts:

  • title: Search engine response time
    rate-ms: 500 # sampling rate, default = 1000
    scale: 2 # number of digits after sample decimal point, default = 1
    legend:
    enabled: true # enables item labels, default = true
    details: false # enables item statistics: cur/min/max/dlt values, default $ items:

sparklines:

  • title: CPU usage
    rate-ms: 200
    scale: 0
    sample: ps -A -o %cpu | awk '{s+=$1} END {print s}'
  • title: Free memory pages
    rate-ms: 200
    scale: 0
    sample: memory_pressure | grep 'Pages free' | awk '{print $3}'

barcharts:

  • title: Local network activity
    rate-ms: 500 # sampling rate, default = 1000
    scale: 0 # number of digits after sample decimal point, default = 1
    items:
    • label: UDP bytes in
      sample: nettop -J bytes_in -l 1 -m udp | awk '{sum += $4} END {print sum}'
    • label: UDP bytes out
      sample: nettop -J bytes_out -l 1 -m udp | awk '{sum += $4} END {print sum}'
    • label: TCP bytes in
      sample: nettop -J bytes_in -l 1 -m tcp | awk '{sum += $4} END {print sum}'
    • label: TCP bytes out
      sample: nettop -J bytes_out -l 1 -m tcp | awk '{sum += $4} END {print sum}'

from sampler.

sqshq avatar sqshq commented on May 8, 2024

Oh, I see what are you talking about.

I'm afraid it's not something we can fix on the Sampler's side. As far as I can see, currently WSL has issues with unicode characters rendering - there is no font-fallback support there.

microsoft/terminal#306
microsoft/terminal#190

Since font-fallback is not available, you might still have a font which supports currently used characters, you can try to find it manually

from sampler.

sqshq avatar sqshq commented on May 8, 2024

Closing, since the solution is found and we can't see how it can be fixed on Sampler's side

from sampler.

DeathError avatar DeathError commented on May 8, 2024

Closing, since the solution is found and we can't see how it can be fixed on Sampler's side

Thanks for the answer. I checked some more system on WSL everything repeats . May report to https://github.com/microsoft/WSL/issues ?

from sampler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.