Skip to content

Simple and easy-to-use minilibrary for manipulating colors of text and background for std::cout

License

Notifications You must be signed in to change notification settings

gogo2/console.color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

console.color

Simple and easy-to-use minilibrary for manipulating colors of text and background of output sending to std::cout

Implementation uses WinAPI for Windows and ANSI escape codes for other OSes.

Available colors

  • black
  • red
  • green
  • yellow
  • blue
  • cyan
  • magenta
  • white

all with normal and bright/bold intensity

_____

Function brighten sets bold/bright color only for text.

OSes other than Windows

Functions set, color and bgcolor use aixterm codes for setting bright colors, if you want to use standard ANSI bold/bright codes please use brighten function after setting color with intensity parameter set to normal.

Tested on:

  • Windows 10 cmd.exe
  • Windows 7 cmd.exe
  • Windows PowerShell
  • msys
  • cygwin
  • ubuntu 16.04

About

Simple and easy-to-use minilibrary for manipulating colors of text and background for std::cout

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published