Skip to content

Latest commit

 

History

44 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terminal Colours

C C++ Visual Studio Code Windows 11 GitHub

A Windows 11 library to make coloured text in the terminal

Table of Contents

Installation

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.

How to use

There are four arguments in the function Red, Green Blue, Text.

  1. Red is the amount of red in the foreground colour you want to display on the Text.
  2. Green is the amount of green in the foreground colour you want to display on the Text.
  3. Blue is the amount of blue in the foreground colour you want to display on the Text.
  4. Text is the Text you want to display.
cprint(Attribute, Background, Foreground, "Text to Display");
cprintf(Attribute, Background, Foreground, "Text to Display");

AI Disclosure

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.

License

MIT

Authors

slyzowo

About

A Windows 11 library to make coloured text in the terminal

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages