Skip to content

Can't figure out how to change IOC prompt. #73

Answered by Araneidae
Robatronic asked this question in Q&A
Discussion options

You must be logged in to vote

Don't forget, this isn't an IOC interpreter, it's the standard Python shell. I did a quick google search, and it appears that sys.ps1 and sys.ps2 will do what you want:

$ python
>>> import sys
>>> sys.ps1 = 'Well howdy there? '
Well howdy there? sys.ps2 = '... you have more for me? '
Well howdy there? (
... you have more for me? )
()
Well howdy there? 

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Robatronic
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #65 on December 13, 2021 08:42.