Skip to content

Commit 6206f43

Browse files
committed
stmhal: Enable REPL auto indent; document paste mode in help().
1 parent 46a1102 commit 6206f43

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

stmhal/help.c

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ STATIC const char *help_text =
6767
" CTRL-B -- on a blank line, enter normal REPL mode\n"
6868
" CTRL-C -- interrupt a running program\n"
6969
" CTRL-D -- on a blank line, do a soft reset of the board\n"
70+
" CTRL-E -- on a blank line, enter paste mode\n"
7071
"\n"
7172
"For further help on a specific object, type help(obj)\n"
7273
;

stmhal/mpconfigport.h

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#define MICROPY_STACK_CHECK (1)
4141
#define MICROPY_HELPER_REPL (1)
4242
#define MICROPY_REPL_EMACS_KEYS (1)
43+
#define MICROPY_REPL_AUTO_INDENT (1)
4344
#define MICROPY_ENABLE_SOURCE_LINE (1)
4445
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
4546
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)

0 commit comments

Comments
 (0)