Login
Remember
IF Answers
Ask a Question

# 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?

- hyperlinks
- inform7
- glulx

## 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.)

## Related questions

- How do you use a hyperlink to paste text without (in effect) pressing enter? (Flexible Windows, Inform 7)
- How do you avoid an extra line break when refreshing a window with Flexible Windows (Inform 7)?
- With Flexible Windows by Jon Ingold, is there a way to make the text display at the top of the window, even in Gargoyle? (Inform 7)
- How do you test whether the player's interpreter will support windows created with Flexible Windows? (Inform 7)
- How does one change the User Style for hyperlinks when using Flexible Windows?

...