【文件属性】:
文件名称:colors:C ++颜色模块
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-01 17:22:03
C++
#Colors一个C ++库,用于在要打印到终端的字符串中插入ANSI颜色代码转义序列。
## Build Colors旨在构建为静态库。
mkdir build
cd build
cmake ..
make
##用法
# include " colors.h "
std::string first = colors::fg::red( " Nick " );
std::string last = colors::bg::blue( " Desaulniers " );
std::cout << colors::style:: bold (first + last) << std::endl;
有关所有颜色/功能,请参见include/colors.h 。
【文件预览】:
colors-master
----lib()
--------colors.cpp(3KB)
----CMakeLists.txt(589B)
----test()
--------test_colors.cpp(1KB)
----LICENSE.md(265B)
----README.md(460B)
----include()
--------colors.h(1KB)