micropython/tools/mpremote/mpremote
Damien George 2771b20d29 tools/mpremote: Add repl option to escape non-printable characters.
This commit adds the "--escape-non-printable" option to the repl command.
When specified the REPL console will escape non-printable characters,
printing them as their hex value in square brackets.

This escaping behaviour was previously the default and only behaviour, but
it is now opt-in.

As part of this change, the speed of echoing device data to the console is
improved by by reading and writing in chunks.

Signed-off-by: Damien George <damien@micropython.org>
2023-05-22 14:13:24 +10:00
..
__init__.py tools/mpremote: Use hatch to build mpremote package. 2023-02-24 11:40:22 +11:00
__main__.py tools/mpremote: Allow running mpremote with python -m. 2022-03-30 15:29:26 +11:00
commands.py all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
console.py all: Fix cases of Python variable assigned but never used. 2023-05-02 16:36:05 +10:00
main.py tools/mpremote: Add repl option to escape non-printable characters. 2023-05-22 14:13:24 +10:00
mip.py tools/mpremote: Add mpremote mip install to install packages. 2022-10-01 22:44:24 +10:00
pyboardextended.py all: Fix cases of Python variable assigned but never used. 2023-05-02 16:36:05 +10:00
repl.py tools/mpremote: Add repl option to escape non-printable characters. 2023-05-22 14:13:24 +10:00