more prompts

This commit is contained in:
Gordon Shumway 2019-12-10 08:46:02 -05:00 committed by GitHub
parent 13381fa7f5
commit 853a6709b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -62,8 +62,8 @@ class TextAdventures(callbacks.Plugin):
def output(self, output):
response = []
prompts = ["\n>", "\n> >", "\n)", pexpect.TIMEOUT]
output.expect_exact(prompts, timeout=1)
prompts = ["\n> >", "\n>\r\n>", "\n>", "\n\)", pexpect.TIMEOUT]
output.expect(prompts, timeout=1)
response = output.before
response = response.decode().splitlines()
return response