Testing with regtest when the game is waiting for a key press

I’m testing an inform6 + glulxe game with regtest (glulxe + remglk back-end), and I just added a call to KeyCharPrimitive() in order to wait for a key press, but now the test suite doesn’t know how to handle it.

I tried adding a line starting with just >, but I get the following message:

> *** Exception: Game is not expecting line input

Do you see a way to fix or workaround this?

You want

>{char} return

>{char} space

…etc. No space between the > and the {.

4 Likes

Thanks! I should have searched for “char” or “keystroke” rather than “keypress” or “key press” in the documentation!