-->
Page 1 of 1

Shortest sweetest browser based serial terminal ever!!!!!!

PostPosted: Mon Aug 15, 2016 11:10 pm
by Mmiscool
Tested on ESP Basic 3.0.Alpha 40.
Alpha 39 had a bug in the Serial.read.chr() returning a number in stead of a character. this has been resolved and this short sweet mini browser to serial terminal is now working.

Only 23 lines of code!!!

https://youtu.be/vsTsmD38oAk

Code: Select allTextbox MyMsg
button "Send line", [send]
button "Send just txt", [send.txt]
print
serialbranch [serialin]
wait

[serialin]
bla$ = Serial.read.chr()
if bla$ == chr(13) then print
if bla$ == chr(10) then print
wprint bla$
if serial.available() <> 0 then goto [serialin]
return

[send]
Serialprintln MyMsg
wait

[send.txt]
serialprint MyMsg
wait


Re: Shortest sweetest browser based serial terminal ever!!!!

PostPosted: Tue Aug 16, 2016 4:55 am
by Bigfix
GREAT and very useful !

How how about some basic VT100 Control sequences support ;)

Re: Shortest sweetest browser based serial terminal ever!!!!

PostPosted: Sun Aug 21, 2016 3:43 am
by kamal sonani
same things do with LUA script >> is it possible ?

Re: Shortest sweetest browser based serial terminal ever!!!!

PostPosted: Sun Aug 21, 2016 6:55 am
by Mmiscool
I am dure you could do the same thing with lua. Will just require a lot more code for the same result.