Can't figure out how to change IOC prompt.
Closed this issue · 2 comments
Robatronic commented
I'm trying to customize iocApp prompts similar to:
epicsEnvSet IOCSH_PS1 "AARMS (s71500)> "
How do I accomplish that with pythonSoftIOC....?
Cheers,
Rob
Araneidae commented
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?
Robatronic commented
Ah!! Of course!! :)
Thanks so much!!!