Comments (25)
What is the version of wavemon
, and can you paste the output of locale
?
from wavemon.
wavemon -h >> wavemon 0.9.3
locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_US.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_US.UTF-8
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
from wavemon.
Thank you, I will look into a fix using wide-character support, similar to ui.c
.
from wavemon.
Thanks.
I was looking through code for part where it initializes the chars used in history graph, couldn't find it.
In what file is that code?
Thinking of modifying the chars used something like
char A='-'
from wavemon.
Look for #ifdef HAVE_LIBNCURSESW
in ui.c
:
- it uses
cchar_t *
for wide characters instead, - as well as "wch" type of functions (
mvwadd_wch
) that add wide characters to the screen, - in particular, it uses the
WACS_xxx
ACS symbols (e.g.WACS_LTEE
).
The non-wide characters in lhist_screen.c
are using chtype
(1 byte) and are likely the cause of the problem.
The solution is to find wide-character replacements (likely all in hist_plot()
) and use these instead.
from wavemon.
I just added a potential fix in 4b775eb - could you give this a try, please?
from wavemon.
I get no histogram on F2 screen, and wireless scanning immediately stops.
from wavemon.
@SCCOBN - can you please check if the above (in master
) fixes the problem you reported.
@rogerxxxx - please limit your contributions to what is helpful to others. Within the past week, you have created 7 issues and cross-posted on 2 existing issues, including this one. This is exceeding the limit of what I am prepared to support. I can't spend the time daily to find the section in the manpage that explains how to configure the histogram boundaries. Thank you for your understanding.
from wavemon.
grrtrr, for your reference, I'm not trying to create a bias with bugs/issues I've posted, just bringing to light workarounds for a current issue/bug. And, I'm not posting issues/bugs, requiring you to work for free, it's against my repor. On the flip, I understand some developers get extremely sensitive with mentioning bugs within other bug filings, creating a hassle or fiascle when trying to investigate prior bugs. (Personally, I have no problems with handling extra data/information.) If this is the case, a more constructive action would have been a quick private Email stating just the last sentence. Shrugs.. If I'm wrong, then I'll peacefully quickly refrain from further submissions.
Hey, you also stated, "there's a cross-post on this bug." I do not see how my post on this bug could have been misconstrued as cross-posting. Unless this bug his bug is for the "History graph displayed" does not pertain to the "F2 histogram", however my knowledge of Latin seems to indicate a histogram is basically a diagram/graph of a history of points. (~30-45 min rx)
from wavemon.
@rogerxxxx - thank you, please use #99 if that is still a problem.
This issue is about wide character support. I would like @SCCOBN to test this, since
- I do not have a system with fonts in the ру́сский алфави́т and have difficulties emulating this,
- @SCCOBN has one of the rare cards that still report the noise value (my cards don't).
So it would be really helpful to see if the updates to master
fixed this problem.
Previous fixes were for the Chinese Alphabet (#85, which was a screen
issue).
So help is appreciated for testing this wide-character issue.
from wavemon.
I just added a potential fix in 4b775eb - could you give this a try, please?
Just tried it, it did not work - https://i.imgur.com/WfCDYvu.png
from wavemon.
Thank you. The fix required libncursesw
, can you please check if it is actually used by sharing the output of:
grep HAVE_LIBNCURSESW Makefile # this is =1 if configure found the support libraries
ldd ./wavemon # shows which dynamic libraries it uses
On my system I have -DHAVE_LIBNCURSESW=1
and
> ldd ./wavemon
linux-vdso.so.1 (0x00007ffd42b93000)
libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007fa478194000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007fa477f6a000)
...
If that still does not work, there is a trick for these ACS (=alternative character set) characters:
> export NCURSES_NO_UTF8_ACS=1
> ./wavemon
from wavemon.
Here is the output of both - https://i.imgur.com/psmfYgP.png
-DHAVE_LIBNCURSESW=1
ldd is libncursesw.so.6
History graph is still messed up
Exporting NCURSES_NO_UTF8_ACS=1 and then running wavemon had no effect..
from wavemon.
Good, thank you. The next 2 things to try are:
- I will add a commit to remove the SNR and noise level graphs, it may be that these mess up the display. The noise level reported by the card is often just a constant (e.g. 95 dBM), so that additional graphs are not really useful.
- If that still does not work, I will simplify
hist_plot
to only use 1 character (and ignore the fancy characters used for fractions).
Can you please give the next commit a try?
from wavemon.
@SCCOBN - when you have time, can you please give 178cceb (right on master
) a spin?
If that still does not work, I will change the characters using in creating the graph.
from wavemon.
Sorry for delay. I'll be checking this thread daily now. No it did not work, BUT.. Did I do it right? I clone the master repo and just configured and make the wavemon and then ran it from within the folder ./wavemon
https://i.imgur.com/AefyJq2.png
from wavemon.
Thank you for all the help and yes you did this right. It seems the special characters used for the fractions (0.2, 0.4, 0.6, 0.8) do not work. I will be removing them in the next commit.
from wavemon.
@SCCOBN - when you have time, could you give 69bc63e a try?
Depending on how this works out, I could bring the old graphs (blue / red) back, or leave them out for simplicity.
from wavemon.
@grrtrr it appears to be working, checking out screenshot - https://i.imgur.com/rIO66MH.png
Interestingly enough, in ./configure it shows ncurses is not used, even though I have it installed. I don't know.
https://paste.ubuntu.com/p/2Z55b65Zpv/
Here yay shows it is installed https://i.imgur.com/Bxw3M3O.png
from wavemon.
Hi, thanks for testing - this has helped to resolve the issue.
As for ncurses
- could you share the output where it says that ncurses
is not used?
The end result is always visible in the Makefile
:
from wavemon.
https://i.imgur.com/ItUEAJd.png
from wavemon.
Thanks, so what does it say in the configure
output - is it because you don't have ncursesw/curses.h
?
It likely is one of the following:?
configure:3652: checking ncursesw/curses.h usability
configure:3652: checking ncursesw/curses.h presence
configure:3652: checking for ncursesw/curses.h
from wavemon.
'
checking for pthread.h... yes
checking ncursesw/curses.h usability... no
checking ncursesw/curses.h presence... no
checking for ncursesw/curses.h... no
checking for sys/socket.h... yes
checking for linux/if.h... yes
'
But then
'
locate curses.h
/home/alex/.cache/yay/gcc8/src/gcc-8.4.0/fixincludes/tests/base/curses.h
/usr/include/curses.h
/usr/include/ncurses.h
/usr/include/slcurses.h
/usr/include/python2.7/py_curses.h
/usr/include/python3.9/py_curses.h
'
This is what I'm talking about.
from wavemon.
The ncurses.h
header can be in multiple places, depending on your Linux distribution.
This had been added as a fix in #79, where ncurses.h
was installed as ncursesw/ncurses.h
.
This is how it looks on my system:
>./configure | grep ncurses
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking ncursesw/curses.h usability... yes
checking ncursesw/curses.h presence... yes
checking for ncursesw/curses.h... yes
There is a bit of redundancy here, will look into nesting the calls.
from wavemon.
Yes, all works! Thank you for your help.. This issue can be closed.
./configure | grep ncurses
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking ncursesw/curses.h usability... no
checking ncursesw/curses.h presence... no
checking for ncursesw/curses.h... no
checking for addnwstr in -lncursesw6... no
checking for addnwstr in -lncursesw... yes
from wavemon.
Related Issues (20)
- New feature request, command line -c option HOT 2
- \xf0\x9f\x87\xb9\xf0\x9f\x87\xb7 chars in F3 Scan List HOT 3
- wavemon does not work with interface in a bond HOT 6
- Switch from 0.8.2 to 0.9.3: inconsistent display of packet counts HOT 6
- Move wavemonrc to XDG_CONFIG_HOME HOT 1
- conf.c:21:10: fatal error: netlink/version.h: No such file or directory HOT 12
- New feature request: Log listed SSID in search mode HOT 4
- Change F[1-9] key HOT 2
- i have a USB WIFI NIC , but wavemon says : no supported wireless interfaces found! Check manpage for help. HOT 4
- Significant degradation of WiFi network performance in the 5 GHz band HOT 5
- Feature request: Split rx/tx rate line HOT 2
- no supported... but iw dev, iw list, /proc/net/dev will show wlp1s0 and wlp2s0, WiFi works HOT 3
- is there any methods to export the data? HOT 1
- Time of Detection HOT 1
- Emoji support HOT 1
- Switching to info screen sometimes hangs HOT 7
- Missing WEXT and /proc/net/wireless missing - wavemon error HOT 7
- Tag 0.9.5 HOT 1
- printing information to terminal HOT 1
- Doesnt compile under ubuntu 24.04 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wavemon.