Extremely minimal color printing utilities for C++.
at master 737 B view raw
1#pragma once 2#include <string> 3#include "prelude.hpp" 4namespace colors { 5 func black(std::string str) noexcept -> std::string; 6 7 func red(std::string str) noexcept -> std::string; 8 9 func green(std::string str) noexcept -> std::string; 10 11 func yellow(std::string str) noexcept -> std::string; 12 13 func blue(std::string str) noexcept -> std::string; 14 15 func magenta(std::string str) noexcept -> std::string; 16 17 func cyan(std::string str) noexcept -> std::string; 18 19 func bold(std::string str) noexcept -> std::string; 20 21 func underline(std::string str) noexcept -> std::string; 22 23 func italic(std::string str) noexcept -> std::string; 24 25 func faint(std::string str) noexcept -> std::string; 26 27 func blink(std::string str) noexcept -> std::string; 28}