Files
micropython/tests/cmdline/repl_words_move.py.exp
Andrew Leech 5b3c928f53 unix/main: Use standard pyexec REPL for unix and windows ports.
This improves REPL usage consistency across ports, by utilizing the pyexec
code for the unix REPL.

Only enabled when MICROPY_USE_READLINE == 1 (the default).

Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
2025-11-22 00:00:07 +11:00

48 lines
845 B
Plaintext

MicroPython \.\+ version
Type "help()" for more information.
>>> # word movement
>>> # backward-word, start in word
>>> \.\+
1234
>>> # backward-word, don't start in word
>>> \.\+
1234
>>> # backward-word on start of line. if cursor is moved, this will result in a SyntaxError
>>> \.\+
6
>>> # forward-word, start in word
>>> \.\+
18
>>> # forward-word, don't start in word
>>> \.\+
16
>>> # forward-word on eol. if cursor is moved, this will result in a SyntaxError
>>> \.\+
6
>>>
>>> # kill word
>>> # backward-kill-word, start in word
>>> \.\+
123
>>> # backward-kill-word, don't start in word
>>> \.\+
101
>>> # forward-kill-word, start in word
>>> \.\+
123
>>> # forward-kill-word, don't start in word
>>> \.\+
3
>>>
>>> # extra move/kill shortcuts
>>> # ctrl-left
>>> \.\+
1234
>>> # ctrl-right
>>> \.\+
123
>>> # ctrl-w
>>> \.\+
1
>>>