Do not internationalize plugin-loader
[projects/chimara/chimara.git] / tests / styletest.c
index 0ed73cc248999f2282f669d28240ce743da79d90..4e9a503f294660c9b5caa2cbcb1a738e274a3555 100644 (file)
@@ -3,6 +3,7 @@
 #include <stdlib.h>
 #include <assert.h>
 #include <libchimara/glk.h>
+#include <libchimara/garglk.h>
 
 void print_help();
 void do_style_test();
@@ -16,6 +17,10 @@ void glk_main(void)
 {
        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;
@@ -28,7 +33,6 @@ void glk_main(void)
     assert(buffer);
     
     glk_put_string("Welcome to the style test\n");
-
     glk_request_line_event(mainwin, buffer, 255, 0);
     while(strncmp(buffer, "quit", 4)) 
     {
@@ -108,7 +112,12 @@ do_style_test() {
        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