Closed GoogleCodeExporter closed 8 years ago
You have to cancel the pending line request in the main window before you can
print anything there.
http://eblong.com/zarf/glk/glk-spec-072_4.html#s.2
"It is illegal to print anything to a window which has line input pending.
[This is because the window may be displaying and editing the player's input,
and printing anything would make life unnecessarily complicated for the
library.]"
Original comment by bcressey@gmail.com
on 13 Jul 2011 at 5:35
Ah yes, thanks for the reminder, Ben--sorry to waste your time. This is yet
another instance of more permissive libraries changing expectations...
Original comment by Ek.Temple@gmail.com
on 13 Jul 2011 at 6:24
The Inform 7 IDE on the Windows side also lets you print to a text buffer that
is awaiting line input, which is unfortunate.
You can get the desired behavior legally using glk_set_echo_line_event(),
canceling line event when the timer fires, printing the desired text to the
buffer, then requesting line input again with the saved buffer.
But that's a lot of work and many people won't bother if the tools don't
enforce it.
Original comment by bcressey@gmail.com
on 13 Jul 2011 at 9:45
Original issue reported on code.google.com by
Ek.Temple@gmail.com
on 13 Jul 2011 at 2:00