[Snek] mu, network REPL, echoing

Keith Packard keithp at keithp.com
Sat Oct 10 18:40:36 PDT 2020


"Misha Gusarov" <dottedmag at dottedmag.net> writes:

> Hi.
>
> I'm back to working on EV3 port of Snek, trying to get Mu REPL working.
>
> telnet'ing to snekserver works well — telnet (or is it kernel?) handles
> local echo and line editing.

I think telnet is leaving the terminal in local echo mode when it
doesn't detect the magic telnet control protocol on the other end of the
wire.

> Should Mu work in the same manner? I suppose it should, but I haven't found
> any echoing in other REPLs in its source code, so I'm confused why they
> don't need it, and how it works in other modes.

It could? But the USB serial Snek instances all handle echo and erase
stuff inside the device, so presumably the EV3 port should as well?

You'll find the echo and erase code in 'snek-io.c', which gets hooked up
in stdio for the avrlibc and picolibc ports, and as SNEK_GETC for the
esp32 port. Lots of options for how to connect things up here :-)

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://keithp.com/pipermail/snek/attachments/20201010/dd6f7976/attachment.sig>


More information about the Snek mailing list