A Windows 11 library to make coloured text in the terminal
Download the .zip folder. and extract them and place the header file (the .h file) and the object file (the .a file) in these locations.
the header file goes in C:\msys64\mingw64\include
while the object file goes in C:\msys64\mingw64\lib.
There are four arguments in the function Red, Green Blue, Text.
Redis the amount of red in the foreground colour you want to display on theText.Greenis the amount of green in the foreground colour you want to display on theText.Blueis the amount of blue in the foreground colour you want to display on theText.Textis the Text you want to display.
cprint(Attribute, Background, Foreground, "Text to Display");cprintf(Attribute, Background, Foreground, "Text to Display");Generative A.I. was used in this project.
Generative A.I. was used to assist to write the colored_printf function, as I did not know how varadic funtions work in C.
slyzowo