http://mmgen-wallet.i2p/project/mmgen/mmgen-wallet/src/ea1e8d1228db50c9776998ff50d270af52b35540/test/cmdtest_py_d/ct_input.py
_line_input(['prompt> ',True,'foobarbaz',True],Ctrl_U+'foobar','foobar',True) def _password_entry(self,prompt,opts=[],term=False): if term and sys.platform == 'win32': return ('skip_warn','pexpect_spawn not supported on Windows platform') t = self.spawn( 'test/misc/input_func.py', opts + ['passphrase'], cmd_dir='.', pexpect_spawn=term ) imsg(f'Terminal: {term}') pw = 'abc-α' t.expect(prompt,pw+'\n') ret = t.expect_getend('Entered: ') assert ret == pw,...