Thread: colorlib.h

  1. #1


    Hi, I just finished my newest invention, the color library.
    It is made for changing fg color / bg color in console apps.
    Simply place the file in your includes directory, look at the colorcodes, find YOUR combo, #include <colorlib.h>, SetConsoleTextAttribute ( h, [color code] );, and you're good to go!

    OH, if this is the wrong section, and is just for support, go ahead and move it.

  2. #2
    Registered Luser cwr's Avatar
    Join Date
    Jul 2005
    Sydney, Australia
    It's in the wrong section because SetConsoleTextAttribute is not a standard C function. I assume this is directed at Windows?

    Also, I wouldn't call it a library, it's a header with a long list of #defines.

  3. #3
    It's a sort of library.
    Well, I said that a mod could move it.
    It'll make code shorter by a bit, ppl won't have to write stuff like FOREGROUND_RED | BACKGROUND_BLUE and stuff, just one, simple little color code.

Popular pages Recent additions subscribe to a feed