Terminal widget issues

‘clr’ fix has been deployed a day or two ago

Android new line fix is in 1.13.2 - it is currently available to 50% of users base,

1 Like

@BlynkAndroidDev

I just tested 1.13.2

clr and new line seems to be fixed.

Only one bug (I think) I found:

In advanced Mode, when printing multiple lines, the Autoscroll is not working.
Instead, it prints all lines in the first top line of the terminal. When reopening the terminal, all the printed lines are displayed normally.

In normal mode, this problem does not exist…

I’m using the configuration below in advanced mode:

image

1 Like

Thanks, we will check this autoscroll issue.

my tests on 1.13.2 show the following (Android 10):

  • this is an OK screenshot when the device has refreshed the terminal window.
  • the below screenshot is after closing and re-opening the blynk app.


“Input line”, “add newline” and “autoscroll” are OFF.

  • below is there result with “add newline” is ON:

I have no idea if I am in the advanced or normal mode (as referred to in the above post).

Piet.

Seems fine. After restart - you see only cached messages (it should be 10 for plus, if you are on plus)

How many messages are actually on those screens?

@pierredebuysscher

Id advanced mode (picture above) you can set the color of the input line and hardware text.

You can make the same test you did with this option enabled to see if in your case it will bug as well…

below are the settings I used:

image

@BlynkAndroidDev it looks like per the third screen that there is 10 terminal.print commands…

@pierredebuysscher can you post your code? I’m not having this issue… I just want to compare with the way you are printing the texts…

1 Like

Yep, you are right.

@pierredebuysscher if it is possible to update your sketch to send full lines and no by parts - you will be able to cache up even more items lines.

I am on plus.

There are 3 messages on the screen.
After reopening the app, one would expect to see exactly the same 3 messages.

the current app versions shows the 3rd message correctly but the previous two are displayed and scrambled on the first line.

I would never have expected that the color would have impact the formatting :wink:
In advanced mode, everything is sent on one line, so that is even worse.

here you are:

case 1:
//Serial.println(“action: poort dicht”);
Blynk.virtualWrite(V41, "item: ", (readpointer + 1), " - ", time1 , " uur ", “: poort dicht”);
break;

  1. Advanced mode is just advanced coloring, is it really affecting anything concerning lines?
  2. Your 3 lines on the first screen in reality are lots of the messages sent by hardware. Blynk does not persist messages by new line character, it persists just 10 last data sent to the terminal pin. Your third screen clearly shows those messages separate by new line

So here you are sending 6 messages, you can concat them by yourself and it will be 1 message

I was not expecting this to be 6 messages as it is one Blynk.virtualWrite after all.
Not sure I understand what you mean by “concat them by yourself”. How do I do that?

  1. Advanced mode is just advanced coloring, is it really affecting anything concerning lines?

yes it is!

try this:

WidgetTerminal terminal(41);

and then print all bytes at once per line:

terminal.printf("item: %u; on %u: poort dicht\n", readpointer + 1, time1);
terminal.flush();
terminal.printf("item: %u; on %u: licht tuin uit\n", readpointer + 1, time1);
terminal.flush();
terminal.printf("item: %u; on %u: licht tuin uit\n", readpointer + 1, time1);
terminal.flush();
1 Like

@pierredebuysscher

I understood here you faced the same problem as I did? printing all lines in the first top line when advanced mode enabled?

thanks, looks as if I was misusing the Blynk.virtualWrite.

correct.

@BlynkAndroidDev so the problem was reproduced in @pierredebuysscher test as well…

1 Like