summaryrefslogtreecommitdiffstats
path: root/src/misc/util/utilColor.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2014-04-10 17:56:31 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2014-04-10 17:56:31 -0700
commita2050baf6b0450be35782dfd60a5c1f82cc44bfb (patch)
tree04d41b17a9f6daccb117ba54a185942b9192fc4f /src/misc/util/utilColor.c
parent37fd2b93a5c00996ae93fce1b4efdccf01f6c807 (diff)
downloadabc-a2050baf6b0450be35782dfd60a5c1f82cc44bfb.tar.gz
abc-a2050baf6b0450be35782dfd60a5c1f82cc44bfb.tar.bz2
abc-a2050baf6b0450be35782dfd60a5c1f82cc44bfb.zip
Command to test console colors.
Diffstat (limited to 'src/misc/util/utilColor.c')
-rw-r--r--src/misc/util/utilColor.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/misc/util/utilColor.c b/src/misc/util/utilColor.c
index cf0194bd..60a4055c 100644
--- a/src/misc/util/utilColor.c
+++ b/src/misc/util/utilColor.c
@@ -54,16 +54,16 @@ void Abc_ColorTest()
#ifdef WIN32
int x, y;
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
- printf( "Background color 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15\n" );
- printf( " -----------------------------------------------\n" );
+ printf( "Background color 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15\n" );
+ printf( " ------------------------------------------------------------------------------\n" );
for ( y = 0; y < 16; y++ )
{
printf( "Foreground color %02d", y );
for ( x = 0; x < 16; x++ )
{
printf( " " );
- SetConsoleTextAttribute( hConsole, (WORD)(16 * y + x) );
- printf( "Hi" );
+ SetConsoleTextAttribute( hConsole, (WORD)(16 * x + y) );
+ printf( " Hi " );
SetConsoleTextAttribute( hConsole, 7 );
}
printf( "\n" );