Skip to content

A small implentation for C which allow you to print messages colored. Its working with the Win API.

Notifications You must be signed in to change notification settings

just6chill/ColorPrint-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

ColorPrint-C

A small implentation for C which allow you to print messages colored. Its working with the Win API.

Usage:

ColorPrint(COLORCODE, "text\n");

Example:

ColorPrint(GREEN, "Hello World\n")

Avalible color codes (use BG_COLORCODE to set the background):

Color code Color
BLACK Black
BLUE Dark blue
GREEN Dark green
RED Dark red
VIOLET Violet
YELLOW Yellow
LGREY Light grey/gray
GREY Grey/gray
LBLUE Light blue
LGREEN Light green
LCYAN Light cyan/teal
LRED Light red
LVIOLET Light violet/pink
LYELLOW Light yellow
WHITE White
Color code Alias
LVIOLET PINK
CYAN TEAL
LCYAN LTEAL
LGREY SILVER
YELLOW OLIVE

Here is a display output:

cmd output


Compile:

Windows:

    gcc main.c -o cprint.exe

Linux (cross-compile):

    i686-w64-mingw32-gcc main.c -o cprint.exe

GitHub all releases GitHub last commit GitHub top language

About

A small implentation for C which allow you to print messages colored. Its working with the Win API.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages