mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 00:50:24 +08:00
853aaa06f2
This commit adds backward-word, backward-kill-word, forward-word, forward-kill-word sequences for the REPL, with bindings to Alt+F, Alt+B, Alt+D and Alt+Backspace respectively. It is disabled by default and can be enabled via MICROPY_REPL_EMACS_WORDS_MOVE. Further enabling MICROPY_REPL_EMACS_EXTRA_WORDS_MOVE adds extra bindings for these new sequences: Ctrl+Right, Ctrl+Left and Ctrl+W. The features are enabled on unix micropython-coverage and micropython-dev.
8 lines
103 B
Plaintext
8 lines
103 B
Plaintext
MicroPython \.\+ version
|
|
Use \.\+
|
|
>>> # Check for emacs keys in REPL
|
|
>>> t = \.\+
|
|
>>> t == 2
|
|
True
|
|
>>>
|