Sorry for my late follow up, I haven’t worked on the Linux version for a while.
I have a function CreateGlkWindows() that kicks off the main story window and the status window above it.
[code]int CreateGlkWindows()
{
/* set styles text color, background color and bold font size for styles Normal, Alert and Note */
SetGlkStyles();
/* Open the main window. /
mainwin = glk_window_open(0, 0, 0, wintype_TextBuffer, 1);
if (!mainwin) {
/ failed to open. */
return(ERROR);
}
/* Set the current output stream to print to it. */
glk_set_window(mainwin);
/* Open the status window above the main window. /
/ The status window is a text grid,three lines high. */
statuswin = glk_window_open(mainwin, winmethod_Above | winmethod_Fixed,
3, wintype_TextGrid, 0);
if (!statuswin) {
/* failed to open */
return(ERROR);
}
return(OK);
}[/code]
First thing it does is call SetGlkStyles()
[code]void SetGlkStyles()
{
/* set styles text color, background color and bold font size for styles Normal, Alert and Note */
glk_stylehint_set(wintype_TextBuffer, style_Normal, stylehint_TextColor, 0x00FFFFFF);
glk_stylehint_set(wintype_TextBuffer, style_Normal, stylehint_BackColor, 0x00000084);
glk_stylehint_set(wintype_TextBuffer, style_Alert, stylehint_TextColor, 0x00FFFFFF);
glk_stylehint_set(wintype_TextBuffer, style_Alert, stylehint_BackColor, 0x00000084);
glk_stylehint_set(wintype_TextBuffer, style_Note, stylehint_TextColor, 0x00FFFFFF);
glk_stylehint_set(wintype_TextBuffer, style_Note, stylehint_BackColor, 0x00000084);
glk_stylehint_set(wintype_TextBuffer, style_Alert, stylehint_Size, -1);
glk_stylehint_set(wintype_TextGrid, style_Normal, stylehint_TextColor, 0x00000084);
glk_stylehint_set(wintype_TextGrid, style_Normal, stylehint_BackColor, 0x00FFFFFF);
glk_stylehint_set(wintype_TextGrid, style_Alert, stylehint_TextColor, 0x00000084);
glk_stylehint_set(wintype_TextGrid, style_Alert, stylehint_BackColor, 0x00FFFFFF);
glk_stylehint_set(wintype_TextGrid, style_Note, stylehint_TextColor, 0x00000084);
glk_stylehint_set(wintype_TextGrid, style_Note, stylehint_BackColor, 0x00FFFFFF);
glk_stylehint_set(wintype_TextGrid, style_Normal, stylehint_Size, -1);
glk_stylehint_set(wintype_TextGrid, style_Note, stylehint_Size, -1);
glk_stylehint_set(wintype_TextGrid, style_Alert, stylehint_Size, -2);
glk_stylehint_set(wintype_TextBuffer, style_Input, stylehint_Weight, 0);
/* stylehints for user input representation */
glk_stylehint_set(wintype_TextBuffer, style_Input, stylehint_TextColor, 0x00FFFFFF);
glk_stylehint_set(wintype_TextBuffer, style_Input, stylehint_BackColor, 0x00000084);
}[/code]
So, given this same code does work in Windows, can we indeed say that stylehints are not implemented in the linux glkterm library?