00001
00002
00003
00004
00005 #ifndef __J2K__ANSI_TEST_CPP__
00006 #define __J2K__ANSI_TEST_CPP__
00007
00008 #include <j2k/Fred/Bios/ANSI.hpp>
00009
00010 int main() {
00011 Cls( 1 );
00012 Locate( 10, 10 );
00013 QBColor( 15, 1 );
00014 printf("Yeah!\n");
00015
00016 QBColor( 14, 2 );
00017 Center( 12, "Exactly at the center !\n" );
00018
00019 for( int j = 0; j < 8; j++ ) {
00020 for( int i = 0; i < 16; i++ ) {
00021 Locate( 2+i, (short)(9.5*j) );
00022 QBColor( i, j );
00023 printf( "%s", colorNameTable[ i ] );
00024 }
00025 }
00026
00027 screen();
00028 QBColor( 7, 0 );
00029 Center( 24, "" );
00030
00031 return 0;
00032 }
00033
00034 #endif
00035
00036