You are on page 1of 1

//******************************************************

// Color Console using JadedHoboConsole namespace


// @author AIam
// @since 2008 August 28
// @notes Microsoft Windows XP Pro SP2
// @notes Microsoft Visual Studio 2005 SP1
//******************************************************
#include <iostream>
#include "Console.h"

using namespace std;


using namespace JadedHoboConsole;

void main()
{
cout<<clr;
cout<< endl
<< bg_blue //Backgroung Color
<< fg_white //Foregroung Color
<< "Test Console.h\n"
<< endl
<< bg_black
<< fg_magenta << "Color "
<< fg_red << "from "
<< fg_blue << "JadedHoboConsole "
<< fg_green<< "namespace.\n"
<< endl
<< setw( 40 ) //Set width 42
<< fg_cyan
<< setiosflags( ios::right )
<< "by\n"
<< setw( 42 )
<< fg_magenta
<< setiosflags( ios::right ) << "A"
<< fg_blue << "I"
<< fg_yellow << "a"
<< fg_green << "m\n"
<< bg_magenta
<< fg_white;
}

You might also like