When using hyperlinks, how do you make the command appear appear next to the > instead of on the following line? (Inform 7)

+1 vote
331 views
asked Jun 13 in Authoring by bg (692 points)
retagged Jun 13 by bg

I ran into this issue with three different extensions that support hyperlinks: Basic Hyperlinks by Emily Short, Inline Hyperlinks by Erik Temple, and Flexible Windows.

Is there a way to make the text appear next to the > instead of on the following line?

Sample transcript of current behavior:

>
take
What do you want to take?

1 Answer

0 votes
answered Jun 13 by bg (692 points)
edited Jun 13 by bg

Answered here:

http://www.intfiction.org/forum/viewtopic.php?f=7&t=18231#p94034

To summarize:

When play begins:
    sets echo line events off.

To sets echo line events off:
    (- if (glk_gestalt(gestalt_LineInputEcho, 0)) glk_set_echo_line_event(gg_mainwin,0); -)

That latter bit of code is from zarf, the former from this thread: http://www.intfiction.org/forum/viewtopic.php?f=7&t=15625#p89869

Also, I've since found that Rewrite the Command Line by Ron Newcomb has built in phrases to handle this.

But if you do this, and you have other commands that are not triggered by hyperlinks, you will have to echo those commands yourself. (See original thread.)

This site is now closed.
As of 1st November 2015, this site is a read-only archive. For more information see the intfiction forum post

Welcome to IF Answers, a site for questions and answers about Interactive Fiction.

Technical questions about interactive fiction development tools such as Inform, Twine, Quest, QuestKit, Squiffy, Adrift, TADS etc. are all on-topic here.

Non-technical questions about interactive fiction are also on-topic. These questions could be about general IF design, specific games, entering the IF Comp etc.
...