py/modsys: Add optional mutable attributes sys.ps1/ps2 and use them.
This allows customising the REPL prompt strings. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -39,6 +39,10 @@ Q()
|
||||
Q(*)
|
||||
Q(_)
|
||||
Q(/)
|
||||
#if MICROPY_PY_SYS_PS1_PS2
|
||||
Q(>>> )
|
||||
Q(... )
|
||||
#endif
|
||||
#if MICROPY_PY_BUILTINS_STR_OP_MODULO
|
||||
Q(%#o)
|
||||
Q(%#x)
|
||||
|
||||
Reference in New Issue
Block a user