Someone asked on IF Answers how to change the style of hyperlinks to make them black instead of blue, and possibly remove the underline. I’m curious to know the answer too. In Glulx Text Effects, none of the styles seems to correspond to hyperlinks.
From GTE:
A glulx text style is a kind of value.
The glulx text styles are all-styles, normal-style, italic-style, fixed-letter-spacing-style, header-style, bold-style, alert-style, note-style, blockquote-style, input-style, special-style-1 and special-style-2.
From GTE documentation:
Chapter: Styles in Glulx
Unlike the Z-Machine, which allows arbitrary combinations of features (such as color and boldness) to be applied to text, Glulx requires the author to define and then use text styles.
There are eleven of these styles:
Table of styles
normal-style the style used for regular text
italic-style used for italic text (this is what the “[italic type]” phrase uses)
bold-style used for bold text (this is what the “[bold type]” phrase uses)
fixed-letter-spacing-style used for monospaced text (this is what the “[fixed letter spacing]” phrase uses)
alert-style used when printing an end of game message such as "*** You have died. ***"
blockquote-style used for printing box quotations
header-style used to print the title of the game
input-style used for the player’s own input
note-style used for messages such as "[Your score has increased by one point.]"
special-style-1 these two styles are not used by Inform, and you are free to use them for any purpose you want
special-style-2
Possibly relevant code in Flexible Windows:
To say link (N - a number):
(- if ( glk_gestalt( gestalt_Hyperlinks, 0 ) ) { glk_set_hyperlink( {N} ); } -).
To say end link:
(- if ( glk_gestalt( gestalt_Hyperlinks, 0 ) ) { glk_set_hyperlink( 0 ); } -).
In Flexible Windows (the latest version), hyperlinks are set like this:
The description of Field is “To the [link 1]north[end link] a wide field opens, while to the [link 2]south[end link] a narrow path winds into dark woods.”
Does anyone know how to adjust the link color?