From 6206f431cf50741f633762dac185421e4c4f1a0d Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 11 Oct 2015 23:33:46 +0100 Subject: [PATCH] stmhal: Enable REPL auto indent; document paste mode in help(). --- stmhal/help.c | 1 + stmhal/mpconfigport.h | 1 + 2 files changed, 2 insertions(+) diff --git a/stmhal/help.c b/stmhal/help.c index 3d9656c63..2a86a9785 100644 --- a/stmhal/help.c +++ b/stmhal/help.c @@ -67,6 +67,7 @@ STATIC const char *help_text = " CTRL-B -- on a blank line, enter normal REPL mode\n" " CTRL-C -- interrupt a running program\n" " CTRL-D -- on a blank line, do a soft reset of the board\n" +" CTRL-E -- on a blank line, enter paste mode\n" "\n" "For further help on a specific object, type help(obj)\n" ; diff --git a/stmhal/mpconfigport.h b/stmhal/mpconfigport.h index 100c66f98..64dc18f4d 100644 --- a/stmhal/mpconfigport.h +++ b/stmhal/mpconfigport.h @@ -40,6 +40,7 @@ #define MICROPY_STACK_CHECK (1) #define MICROPY_HELPER_REPL (1) #define MICROPY_REPL_EMACS_KEYS (1) +#define MICROPY_REPL_AUTO_INDENT (1) #define MICROPY_ENABLE_SOURCE_LINE (1) #define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ) #define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)