Hi thomashollier, I'm sorry, I just wake up from sleep.
Thank you very much, its working very nicely.
it shows right name of the file, very beautiful. I'm exciting.



This what happen:

Thank You very much, I appreciate it. I really love it.

Thomashollier, is it possible to put processing console on the processing GUI?
I'm sorry I not mean the whole console will be in the GUI.
this code are reading the gcode:
- void serialEvent(Serial p)
- {
- String s = p.readStringUntil('\n');
- println(s.trim());
-
- if (s.trim().startsWith("ok")) stream();
- if (s.trim().startsWith("error")) stream(); // XXX: really?
- }
and the run gcode will be shown on the console, like this:
G01 X-6.2568 Y39.1225
ok
G01 X-6.1981 Y39.3031
ok
G01 X-6.1119 Y39.4723
ok
G01 X-6.0003 Y39.6260
ok
G01 X-5.8660 Y39.7603
ok
and it keep running until the last gcode line has been sent to the Arduino.
its println() and showed up in the console, I already use text() for this code and it appear once and disappear.
I want to make 8 or 15 line or something like that, that showed up in the GUI:
G01 X-6.2568 Y39.1225 ----> First line
ok -----> Second line
G01 X-6.1981 Y39.3031 -----> Third line
ok -----> Fourth line
G01 X-6.1119 Y39.4723 -----> Fifth line
ok -----> Sixth line
G01 X-6.0003 Y39.6260 -----> Eighth line
ok -----> Nineth line
G01 X-5.8660 Y39.7603 -----> Tenth Line
and then, when Eleventh line coming, the First line will not be shown.
ok -----> Eleventh line
and it will be shown like this.
ok -----> First line
G01 X-6.1981 Y39.3031 -----> Second line
ok -----> Third line
G01 X-6.1119 Y39.4723 -----> Fourth line
ok -----> Fifth line
G01 X-6.0003 Y39.6260 -----> Sixth line
ok -----> Eighth line
G01 X-5.8660 Y3 9.7603 -----> Nineth Line
ok -----> Tenth line
It will be like this, this just illustration

:

Even though there is 500 lines of gcode, the GUI will only show 10 running lines for them to showed up.
Thank You very much

.