You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use micropython.repl_autocomplete() to provide tab completion matching
the native REPL behavior: single match inserts the completion, multiple
matches prints candidates and redraws the prompt, tab after whitespace
inserts 4 spaces for indentation. Falls back gracefully on ports without
MICROPY_HELPER_REPL.
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
Copy file name to clipboardExpand all lines: micropython/aiorepl/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,7 @@ Ctrl-D at the asyncio REPL command prompt will terminate the current event loop,
94
94
95
95
The following features are unsupported:
96
96
97
-
* Tab completion is not supported (also unsupported in `python -m asyncio`).
97
+
* Tab completion requires `micropython.repl_autocomplete` (available when firmware is built with `MICROPY_HELPER_REPL`, which is the default for most ports).
98
98
* Multi-line continuation. However you can do single-line definitions of functions, see demo above.
99
99
* Exception tracebacks. Only the exception type and message is shown, see demo above.
100
100
* Emacs shortcuts (e.g. Ctrl-A, Ctrl-E, to move to start/end of line).
0 commit comments