Created
September 26, 2016 08:51
-
-
Save jusonqiu/b7d1f1f067a4067738f47ed554c2dec1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment