Skip to content

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

Description

@Robatronic

I'm trying to customize iocApp prompts similar to:

epicsEnvSet IOCSH_PS1 "AARMS (s71500)> "

How do I accomplish that with pythonSoftIOC....?

Cheers,
Rob

Activity

  1. Araneidae commented on Nov 25, 2021

    @Araneidae
    Collaborator

    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? 
  2. Robatronic commented on Nov 30, 2021

    @Robatronic
    Author

    Ah!! Of course!! :)

    Thanks so much!!!

  3. locked and limited conversation to collaborators on Dec 13, 2021
  4. converted this issue into a discussion #73 on Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions