summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorTom Soulanille <soul@prama.com>2015-07-09 16:32:36 -0700
committerDamien George <damien.p.george@gmail.com>2015-07-26 15:22:13 +0100
commit7d588b0c7c9698d23b1e5e7b54e0e2094ad8f464 (patch)
tree716789795d5bb252f2d436b6872d8df9179c52f4 /py
parentcd14188bc8b4cd942ea7ea5cf5eb27955d8695ae (diff)
lib/mp-readline: Add emacs-style control characters for cursor movement.
Disabled by default. Adds 108 bytes to Thumb2 arch when enabled.
Diffstat (limited to 'py')
-rw-r--r--py/mpconfig.h5
1 files changed, 5 insertions, 0 deletions
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)