diff options
author | Damien George <damien@micropython.org> | 2023-05-11 13:24:14 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-05-22 14:13:24 +1000 |
commit | 2771b20d29569bf51ea841a804a66048efde1593 (patch) | |
tree | d8ccb18fd61d4cd2e06bb5fddd58c9a76d5fff93 /docs/reference | |
parent | a802f719085d52f61bd08908de298f92d226be0b (diff) |
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>
Diffstat (limited to 'docs/reference')
-rw-r--r-- | docs/reference/mpremote.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/reference/mpremote.rst b/docs/reference/mpremote.rst index 3225fc5f2..e96b32cbb 100644 --- a/docs/reference/mpremote.rst +++ b/docs/reference/mpremote.rst @@ -92,6 +92,7 @@ The full list of supported commands are: Options are: + - ``--escape-non-printable``, to print non-printable bytes/characters as their hex code - ``--capture <file>``, to capture output of the REPL session to the given file - ``--inject-code <string>``, to specify characters to inject at the REPL when |