From 7d588b0c7c9698d23b1e5e7b54e0e2094ad8f464 Mon Sep 17 00:00:00 2001 From: Tom Soulanille Date: Thu, 9 Jul 2015 16:32:36 -0700 Subject: lib/mp-readline: Add emacs-style control characters for cursor movement. Disabled by default. Adds 108 bytes to Thumb2 arch when enabled. --- py/mpconfig.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'py/mpconfig.h') diff --git a/py/mpconfig.h b/py/mpconfig.h index 9f0e909f5..a345e5fda 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -303,6 +303,11 @@ #define MICROPY_HELPER_REPL (0) #endif +// Whether to include emacs-style readline behavior in REPL +#ifndef MICROPY_REPL_EMACS_KEYS +#define MICROPY_REPL_EMACS_KEYS (1) +#endif + // Whether port requires event-driven REPL functions #ifndef MICROPY_REPL_EVENT_DRIVEN #define MICROPY_REPL_EVENT_DRIVEN (0) -- cgit v1.2.3