0

How do I press Enter with pexpect? The problem is I dont know how to submit "enter"

-- Press ENTER to continue or Ctrl-C to abort. --

child.expect ('-- Press ENTER to continue or Ctrl-C to abort. --*')
child.sendline ('')
udondan
  • 57,263
  • 20
  • 190
  • 175
Tampa
  • 75,446
  • 119
  • 278
  • 425

0 Answers0