September 2019 Update

New! We're moving to the new forum, eventually it will replace this blog. Please join us there.

View the Most Recent Feature Sheet by clicking HERE!

Tuesday, June 25, 2019

GBW Serial Terminal - Update #2

Just a couple...

I added support for a generic textRGB tag... {{TEXTRGB:0.0.0.255.255.255}}

The 6 numbers are 3 for foreground RGB and 3 for background RGB. This is much better than creating special tags for every color I want to use...


I also added support for a {{REPLACELAST}} tag. It can be anywhere in a line of text, and just before the line is printed, the previous line (last line on display) is removed, so this line in effect, replaces the last...

Here's a great example where this is useful:

[MS] 2019/06/24 07:35:21 Update Sensor Min/Max
[MS] 2019/06/24 07:35:34 12% complete...
[MS] 2019/06/24 07:35:46 16% complete...
[MS] 2019/06/24 07:35:51 33% complete...
[MS] 2019/06/24 07:36:06 50% complete...
[MS] 2019/06/24 07:36:12 66% complete...
[MS] 2019/06/24 07:36:17 83% complete...
[MS] 2019/06/24 07:36:32 95% complete...
[MS] 2019/06/24 07:36:32 Finished updating Sensor Min/Max


Thats a lot of lines scrolling by all the time. It is much neater when it all happens on one line.

First, you see this line...

[MS] 2019/06/24 07:35:34 12% complete...

Then when the next line is processed, and has the tag in it somewhere, rather than print the line after the previous one, it removes the previous, and replaces it with this line.

[MS] 2019/06/24 07:35:46 16% complete...


so rather than the 9 lines above, you would end up with just 2 in the end...

[MS] 2019/06/24 07:35:21 Update Sensor Min/Max
[MS] 2019/06/24 07:36:32 Finished updating Sensor Min/Max

with the % complete showing during the processing, but replaced at the end...



No comments:

Post a Comment

Any comments deemed off topic or offensive will be removed