Answers for "colored console output c++"

C++
2

c++ console color

SetConsoleTextAttribute(console, ((int)background * 16) + (int)forground);
Posted by: Guest on May-29-2021
1

output to console in color c++

Name            FG  BG
Black           30  40
Red             31  41
Green           32  42
Yellow          33  43
Blue            34  44
Magenta         35  45
Cyan            36  46
White           37  47
Bright Black    90  100
Bright Red      91  101
Bright Green    92  102
Bright Yellow   93  103
Bright Blue     94  104
Bright Magenta  95  105
Bright Cyan     96  106
Bright White    97  107
Posted by: Guest on October-31-2021

Browse Popular Code Answers by Language