Hello community,
Obligatory I am very green in node-red, but I am loving every second of it.
I am currently building an interface that receives intermittent TCP-IN messages, such as this:
19h12m55.301s : XX 3 CMD INPUT : Clear
19h14m24.859s : UI_COLOR_WINDOW::update_items = 0
19h14m49.803s : XX 3 CMD INPUT : Macro 1100
And would like to print on inside a text box those messages.
Here is where I just can't make it work properly:
-
Ideally, the text box would contain a maximum of 200 new lines, erasing the first messages once 200 lines have been reached to continue printing information on screen.
-
Having 200 lines may cause issue with the text box size, so I was looking into having a scrollbar to the textbox, but I cannot find any type of information.
-
Sometimes the line contains more than 200 character, making the text box size constraint fail and the text goes beyond the text box - or part of the message gets clipped.
Any pointers at all will greatly help me I'm sure.
For reference, I've looked into the following:
Join string / Function node with custom JScript to concat the message (I couldn't make any of those work)