How to use the ptyprocess.ptyprocess._EOF function in ptyprocess

To help you get started, we’ve selected a few ptyprocess examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pexpect / pexpect / tests / test_ctrl_chars.py View on Github external
def test_sendeof(self):
        child = pexpect.spawn(self.getch_cmd, echo=False, timeout=5)
        child.expect('READY')
        child.sendeof()
        child.expect(str(ord(ptyprocess._EOF)) + '

ptyprocess

Run a subprocess in a pseudo terminal

ISC
Latest version published 3 years ago

Package Health Score

79 / 100
Full package analysis

Similar packages