{
char stringbuffer[128];
event_t ev;
+
+ /* Define some custom styles */
+ glk_stylehint_set(wintype_AllTypes, style_User1, stylehint_TextColor, 0x00FF0000);
+
mainwin = glk_window_open(0, 0, 0, wintype_TextBuffer, 0);
if(!mainwin)
return;
assert(buffer);
glk_put_string("Welcome to the style test\n");
-
glk_request_line_event(mainwin, buffer, 255, 0);
while(strncmp(buffer, "quit", 4))
{
void
do_mouse_test() {
- glk_request_mouse_event(mainwin);
+ glk_set_window(statuswin);
+ glk_window_move_cursor(statuswin, 0, 0);
+ glk_put_string("Click me......\n");
glk_request_mouse_event(statuswin);
+ glk_set_window(mainwin);
}
void