资 源 简 介
Colorblind-friendly library to output colored text to unix-like terminals.
This project belongs to FuDePAN.
Basic Documentation
cout << Fg(Blue) << "Hello" << Fg(Green) << " World!" << endl;
will print the word "Hello" in blue and " World!" in green.
The following manipulators are available:
* Fg(color): sets foreground to color
* Bg(color): sets background to color
* DefaultBg: sets the default background
* Reset: resets all attributes (including fg and bg) to the default
* RevertFgBg: swaps fg and bg colors
* FgBg(fg, bg ): sets fg color as foreground and bg color as background
* SaveFgBg: saves current fg and bg colors until the end of the line, the restores it
* Bold: sets bold effect (not always available)
* HalfBright: sets intensity to half
* NormalIntensity: r