#include <stdlib.h>
#include <assert.h>
#include <libchimara/glk.h>
+#include <libchimara/garglk.h>
void print_help();
void do_style_test();
{
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))
{
glk_set_style(style_User2);
glk_put_string("User2\n");
+ glk_set_style(style_Header);
+ garglk_set_zcolors(0xFF0000, 0x00FFFF);
+ glk_put_string("Zcolor test\n");
+
glk_set_style(style_Normal);
+ garglk_set_zcolors(0x000000, 0xFFFFFF);
}
void
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