I feel like I used to be able to choose “Authoring Inform 6 / 7” for the category… Hmm…
Anyways, hello! I’m playing around with echoing input in different ways and I read this:
void glk_set_echo_line_event(winid_t win, glui32 val);
Normally, after line input is completed or cancelled in a buffer window, the library ensures that the complete input line (or its latest state, after cancelling) is displayed at the end of the buffer, followed by a newline. This call allows you to suppress this behavior. If the val argument is zero, all subsequent line input requests in the given window will leave the buffer unchanged after the input is completed or cancelled; the player’s input will not be printed. If val is nonzero, subsequent input requests will have the normal printing behavior.
[Note that this feature is unrelated to the window’s echo stream.]
res = glk_gestalt(gestalt_LineInputEcho, 0);
Not all libraries support this feature. This returns 1 if glk_set_echo_line_event() is supported, and 0 if it is not. [Remember that if it is not supported, the behavior is always the default, which is line echoing enabled .]
If you turn off line input echoing, you can reproduce the standard input behavior by following each line input event (or line input cancellation) by printing the input line, in the Input style, followed by a newline in the original style.
The glk_set_echo_line_event() does not affect a pending line input request. It also has no effect in non-buffer windows. [In a grid window, the game can overwrite the input area at will, so there is no need for this distinction.]
Can be found at: https://www.eblong.com/zarf/glk/Glk-Spec-075.html
So, I’m trying to figure out how to print with the Input style (see bold&italic text above). It’s not one of the standard Inform styles, so how does one do it?