Пример #1
0
    def __init__(self, verbosity, encoding, **unused):
        PexpectMixin.__init__(
            self,
            PS1_re=r'_byexample iex _byexample/iex> ',
            any_PS_re=r'_byexample (iex|\.\.\.) _byexample/iex> ')

        self.encoding = encoding
Пример #2
0
    def __init__(self, verbosity, encoding, **unused):
        self.encoding = encoding

        PexpectMixin.__init__(
            self,
            PS1_re=r'\[cling\]\$',  # [cling]$
            any_PS_re=r'\[cling\][$!](?: \?)?'
        )  # [cling]!
Пример #3
0
    def __init__(self, verbosity, encoding, **unused):
        self.encoding = encoding

        self._PS1 = r'/byexample/py/ps1> '
        self._PS2 = r'/byexample/py/ps2> '

        PexpectMixin.__init__(self,
                              PS1_re=self._PS1,
                              any_PS_re=r'/byexample/py/ps\d> ')
Пример #4
0
    def __init__(self, verbosity, encoding, **unused):
        self.encoding = encoding

        # --nh     do not read ~/.gdbinit
        # --nx     do not read any .gdbinit
        # --quiet  do not print version number on startup
        PexpectMixin.__init__(self,
                              PS1_re=r'\(gdb\)[ ]',
                              any_PS_re=r'\(gdb\)[ ]')
Пример #5
0
    def __init__(self, verbosity, encoding, **unused):
        PexpectMixin.__init__(
            self,
            # the format is '/byexample/php/ blk chr >'
            # where blk indicates in which block we are
            # and chr indicates in which unterminated block
            # we are
            PS1_re=r'/byexample/php/\s+php\s+>\s+> ',
            any_PS_re=r'/byexample/php/\s+[^ ]+\s+[^ ]+\s+> ')

        self.encoding = encoding
Пример #6
0
    def __init__(self, verbosity, encoding, **unused):
        PexpectMixin.__init__(self,
                              PS1_re=r'irb[^:]*:\d+:0(>|\*) ',
                              any_PS_re=r'irb[^:]*:\d+:\d+(>|\*|") ')

        self.encoding = encoding
Пример #7
0
    def __init__(self, verbosity, encoding, **unused):
        PexpectMixin.__init__(self,
                              PS1_re=r'node > ',
                              any_PS_re=r'(?:node > )|(?:\.\.\. )')

        self.encoding = encoding
Пример #8
0
    def __init__(self, verbosity, encoding, **unused):
        self.encoding = encoding

        PexpectMixin.__init__(self,
                              PS1_re=r"/byexample/sh/ps1> ",
                              any_PS_re=r"/byexample/sh/ps\d+> ")