#Customize REPL prompt
1 messages · Page 1 of 1 (latest)
Am I correct to assume the ">>> " prompt is hardcoded in Circuitpython/Micropython's pyexec_friendly_repl_process_char function? https://sourcegraph.com/github.com/adafruit/circuitpython@72981cf2abf9b58074228062e8d8fdfd1bd53bdc/-/blob/shared/runtime/pyexec.c?L425:12&popover=pinned
We don't currently have this afaik. we'd be happy to review and merge a PR for it though. Was it added in MP 1.19? We haven't merged that yet on our end
Thanks! I wasn’t aware it had been part of MP 1.19 : “Built-in modules can now have (optional) mutable attributes, and this is used to implement sys.ps1/sys.ps2 which allow the user to customise the REPL prompt. This can be useful, for example, to configure a different REPL for different boards so they can be easily distinguished.”
we hope to merge in 1.19 and (hopefully 1.20) into CP 9