Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 814 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 814 Bytes

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