Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Very minor issue with CMX4 and Linux Konsole cursor

From Cumulus MX version 3 build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since, and has recently released Cumulus MX version 4. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
broadstairs
Posts: 1184
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Very minor issue with CMX4 and Linux Konsole cursor

Post by broadstairs »

I have noticed that when I use a Linux konsole to start CMX4 (not as a service) it displays the text in various colours which is OK but as part of doing that the cursor disappears, my profile uses green text on black background and after CMX4 starts the cursor no longer shows as I expect it has changed to black. This is really annoying although obviously very minor. I don't know why the output from CMX4 in this situation has to be in colour? I suspect this is something to do with dotnet. Has anyone else noticed this?

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Very minor issue with CMX4 and Linux Konsole cursor

Post by freddie »

It'll be to do with your shell colour settings. What shell do you use? Is it bash?
Freddie
Image
broadstairs
Posts: 1184
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: Very minor issue with CMX4 and Linux Konsole cursor

Post by broadstairs »

It's a KDE Konsole which runs /bin/bash and I have set it to the builtin profile as default which is read only. When I start it the cursor works normally but after running dotnet to start CMX and stopping with ctrl+c the cursor disappears. It only happens when I run dotnet to start CMX, the konsole window behaves as expected on every other command I use.

Stuart

Update: I was just searching for any issues with dotnet and found a discussion which highlights dotnet having an option to set the cursor invisible but on Linux this does not turn off! So I suspect this issue relates to this.
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Very minor issue with CMX4 and Linux Konsole cursor

Post by freddie »

If it was bash-specific then other users may/will have reported it.

I googled and found discussions similar to the one you referenced, but they explained that hiding the cursor using dotnet wasn't supported on Linux (or any Unix) due to issues with referencing the Linux cursor from dotnet - rather than it disappearing on dotnet program termination.

My money would still be on something in the local environment - but as you're using a vanilla profile then I'm still in the dark :)
Freddie
Image
broadstairs
Posts: 1184
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: Very minor issue with CMX4 and Linux Konsole cursor

Post by broadstairs »

Reading the thread I found someone had managed to hide the cursor but admitted they might have done something wrong!

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Very minor issue with CMX4 and Linux Konsole cursor

Post by mcrossley »

The logging to console routine does a call to ResetColor() after every write to the screen which is supposed to set the colours back to your default values.

However, now you have pointed it out there is no cursor in the Windows window either when MX is running.

Doesn't that make sense though. You have a cursor when you can input text. Whilst MX is running, the shell has yielded to the program, and only gets control back once the program exits?
broadstairs
Posts: 1184
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: Very minor issue with CMX4 and Linux Konsole cursor

Post by broadstairs »

Just done some more testing and CreateMissing runs and the cursor shows afterwards but the colour has changed to red! Also I wonder if using CTRL+C to terminate CMX is part of the issue as CreateMissing prompts to end the program normally! I've also asked over on the KDE community to see if this has been seen by anyone else.

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Very minor issue with CMX4 and Linux Konsole cursor

Post by mcrossley »

Ah so you are saying the cursor is not visible after MX exits?
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Very minor issue with CMX4 and Linux Konsole cursor

Post by mcrossley »

And on Windows too, there is no cursor when MX exits. It's not a colour thing as I use the default black/white, an issuing the "color" command to reset the colours to default has not effect. So the cursor has indeed been hidden somehow.
broadstairs
Posts: 1184
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: Very minor issue with CMX4 and Linux Konsole cursor

Post by broadstairs »

mcrossley wrote: Mon 09 Sep 2024 10:49 am Ah so you are saying the cursor is not visible after MX exits?
Yes no cursor after ending CMX using CTRL+C but with CreateMissing it still shows after ending message to hit any key BUT has changed colour!

The default built-in profile uses white text on black but CMX still issues messages while running in colour.

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Very minor issue with CMX4 and Linux Konsole cursor

Post by mcrossley »

OK, fixed by adding an extra command just before exiting - Console.CursorVisible = true;

Nowhere does MX set the CursorVisible = false, so it must be .NET or perhaps a package MX uses is switching it off? If it is still visible after CreateMissing exits it would tend to point to one of the third-party packages being the culprit.
broadstairs
Posts: 1184
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: Very minor issue with CMX4 and Linux Konsole cursor

Post by broadstairs »

Mark thanks for taking a look much appreciated.

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
User avatar
rogerthn
Posts: 547
Joined: Thu 11 Apr 2013 6:31 pm
Weather Station: Ecowitt GW1000/GW1003
Operating System: Raspberry Pi OS bullseye aarch64
Location: Trollhättan Sweden
Contact:

Re: Very minor issue with CMX4 and Linux Konsole cursor

Post by rogerthn »

Looks like missing cursor after CTRL-C has been there for some time ;)
My OLD installation is running Cumulus MX v.3.9.7 build 3107 :groan:
Screenshot 2024-09-09 195308.png
Cumulus MX v.3.9.7 build 3107
Working Dir: /home/pi/CumulusMX/
Today.ini = data/today.ini
Last update=2024-09-09T19:35:00
You are not running the latest version of Cumulus MX, build 4028 is available.
Cumulus running at: http://*:8998/
(Replace * with any IP address on this machine, or localhost)
Open the admin interface by entering this URL in a browser.
Connecting real time FTP
2024-09-09 19:50:42
Type Ctrl-C to terminate
Normal running
Ctrl+C pressed

Cumulus terminating
Screenshot 2024-09-09 195440.png
Not a major issue!
You do not have the required permissions to view the files attached to this post.
Image
Post Reply