Logo
Explore Help
Register Sign In
fengqi/lv_micropython
1
0
Fork 0
You've already forked lv_micropython
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
lv_micropython/tests/cmdline/repl_sys_ps1_ps2.py.exp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
136 B
Plaintext
Raw Permalink Normal View History

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
MicroPython \.\+ version
Use \.\+
>>> # 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"
PS1sys.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
PS1(1 +
PS22)
3
PS1
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 71ms Template: 0ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API