I have read the documentation but as far as I can tell raw REPL mode does absolutely nothing with its input.
In contrast to paste mode which does do what it's supposed to.
Should raw REPL mode be removed ? Am I missing something ?
Jon
Raw REPL
Re: Raw REPL
pyboard.py uses raw repl to send python snippets to the board.
The way that it works is that you send a bunch of python (in raw repl mode this doesn't get echoed back). You then send Control-D and the python source that was sent is compiled and executed.
So if you were to type: Control-A print("Hello") Control-D then you should see the following: You can continue to enter python code and enter Control-D to cause the code entered so far to be compiled and exexcuted.
raw mode is intended to be used by programs, not humans, which is why it doesn't echo back the input.
Paste mode is similar, but because its intended to be used by humans, it echoes back the characters which are received.
The way that it works is that you send a bunch of python (in raw repl mode this doesn't get echoed back). You then send Control-D and the python source that was sent is compiled and executed.
So if you were to type: Control-A print("Hello") Control-D then you should see the following:
Code: Select all
>>>
raw REPL; CTRL-B to exit
>OKHello
>
raw mode is intended to be used by programs, not humans, which is why it doesn't echo back the input.
Paste mode is similar, but because its intended to be used by humans, it echoes back the characters which are received.
Re: Raw REPL
Maybe just the ESP8266 port is broken in this regard ? It doesn't cause me any trouble.
I get expected output, definitions or whatever when using paste mode but not raw REPL mode.
I get expected output, definitions or whatever when using paste mode but not raw REPL mode.
Re: Raw REPL
If you use programs like picocom or minicom, Ctrl-A is their escape char. You hev to press Ctrl-A twice, to get it sent to esp8266 once.