Horje
printf red color Code Example
printf output with color
#include <stdio.h>

#define KNRM  "\x1B[0m"
#define KRED  "\x1B[31m"
#define KGRN  "\x1B[32m"
#define KYEL  "\x1B[33m"
#define KBLU  "\x1B[34m"
#define KMAG  "\x1B[35m"
#define KCYN  "\x1B[36m"
#define KWHT  "\x1B[37m"

int main()
{
    printf("%sred\n", KRED);
    printf("%sgreen\n", KGRN);
    printf("%syellow\n", KYEL);
    printf("%sblue\n", KBLU);
    printf("%smagenta\n", KMAG);
    printf("%scyan\n", KCYN);
    printf("%swhite\n", KWHT);
    printf("%snormal\n", KNRM);

    return 0;
}
printf red color
Red \033[0;31m




Whatever

Related
godot get mouse position raycast Code Example godot get mouse position raycast Code Example
hwo do you comment out in lua Code Example hwo do you comment out in lua Code Example
imagemagick convert heic to jpg Code Example imagemagick convert heic to jpg Code Example
p5 keypressed Code Example p5 keypressed Code Example
logs not showing up in vscode debugger Code Example logs not showing up in vscode debugger Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
6