This website requires JavaScript.
Explore
Help
Sign In
djsundog
/
circuitpython
Watch
1
Star
0
Fork
0
You've already forked circuitpython
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
circuitpython
/
tests
/
cmdline
/
repl_sys_ps1_ps2.py
7 lines
75 B
Python
Raw
Normal View
History
Unescape
Escape
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>
2021-07-27 00:43:35 +10:00
# test changing ps1/ps2
tests: Replace umodule with module everywhere. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-08-18 16:57:45 +10:00
import
sys
sys
.
ps1
=
"
PS1
"
sys
.
ps2
=
"
PS2
"
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>
2021-07-27 00:43:35 +10:00
(
1
+
2
)
Reference in New Issue
Copy Permalink