linux - How can I print to the console in color in a cross-platform ...

linux - How can I print to the console in color in a cross-platform ...

瀏覽:335
日期:2025-06-29
You can use the ANSI colour codes. Here's an example program: #include int main(int argc, char *argv[]) { printf("%c[1;31mHello, world!...看更多