Giter Club home page Giter Club logo

Comments (10)

grrtrr avatar grrtrr commented on September 3, 2024

Troubleshooting steps:

  • check locale settings: https://help.ubuntu.com/community/Locale
  • ncurses requires ANSI escape sequences, your $TERM should support this (known working examples are xterm and vt100)
  • try running this from xterm, after checking locale.

from wavemon.

grrtrr avatar grrtrr commented on September 3, 2024

@sliddjur - has this been resolved, did you find a fix?

from wavemon.

sliddjur avatar sliddjur commented on September 3, 2024

@grrtrr I installed xterm from apt. It still looks the same.

olof@olof-ubuntu ~> echo $TERM
xterm-256color

In xterm app, $TERM is xterm.

My locale

olof@olof-ubuntu ~> locale -a
C
C.UTF-8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IL
en_IL.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
nb_NO.utf8
POSIX
sv_FI.utf8
sv_SE.utf8

from wavemon.

grrtrr avatar grrtrr commented on September 3, 2024

Thanks for getting back. I still think that this related to locale settings, of which there are quite a few.

In the above picture the 'funny' characters appear between

  • thousand separator for RX/TX (220,293 and 226,402 respectively);
  • thousand separator for retries (number seems to be 2,904 but is cut off -- seems a lot).

The numerical setting is set via the LC_LOCALE, which is in turn affected by other settings.

In addition, instead of a dot (".") the dBm setting above uses a comma ("1,26nW"), which is unusual. This too would indicate an unusual locale setting.

Under the hood, this is all done using the setlocale() call.

All of these settings can be bypassed by setting LC_ALL.

Can you please try this: export LC_ALL=C, and then run wavemon?

Likely you will then have no thousand-separator between numbers. If that works I can take it from there, maybe the use of setlocale can be improved.

from wavemon.

sliddjur avatar sliddjur commented on September 3, 2024

yes, if I set export LC_ALL=C and run wavemon, it works.

from wavemon.

grrtrr avatar grrtrr commented on September 3, 2024

Thank you. I will work on a fix that does not require setting an environment variable. The downside is that it will use US/GB numeric separator (a . between 1 and fractions of 1, and a , between groups of thousands). This may look strange in other countries, but is still better than the funny fonts - which might have to do with the ncurses library.

from wavemon.

grrtrr avatar grrtrr commented on September 3, 2024

As promised - if you are able to compile from master, could you give the above a quick run?

It should resolve the locale-specific issues. It is now locale-independent.

from wavemon.

sliddjur avatar sliddjur commented on September 3, 2024

image

It looks better now.

olof@olof-ubuntu /opt/wavemon % /usr/local/bin/wavemon -v
wavemon 0.8.2
Distributed under the terms of the GPLv3.

from wavemon.

grrtrr avatar grrtrr commented on September 3, 2024

Thank you, I will integrate this into the next release.

from wavemon.

grrtrr avatar grrtrr commented on September 3, 2024

Resolved in 324b151

from wavemon.

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.