diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..479a0ef --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +nyancat diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8d1c3ae --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +nyancat: nyancat.c + gcc -o nyancat nyancat.c diff --git a/nyancat.c b/nyancat.c index 5a07b54..055f5ba 100644 --- a/nyancat.c +++ b/nyancat.c @@ -852,50 +852,50 @@ try_again: colors['*'] = "\033[48;5;8m"; /* Gray cat face */ colors['%'] = "\033[48;5;175m"; /* Pink cheeks */ } else if (!strcmp(response, "2")) { - colors[','] = "\033[104m"; /* Blue background */ - colors['.'] = "\033[107m"; /* White stars */ - colors['\''] = "\033[40m"; /* Black border */ - colors['@'] = "\033[47m"; /* Tan poptart */ - colors['$'] = "\033[105m"; /* Pink poptart */ - colors['-'] = "\033[101m"; /* Red poptart */ - colors['>'] = "\033[101m"; /* Red rainbow */ - colors['&'] = "\033[43m"; /* Orange rainbow */ - colors['+'] = "\033[103m"; /* Yellow Rainbow */ - colors['#'] = "\033[102m"; /* Green rainbow */ - colors['='] = "\033[104m"; /* Light blue rainbow */ - colors[';'] = "\033[44m"; /* Dark blue rainbow */ - colors['*'] = "\033[100m"; /* Gray cat face */ - colors['%'] = "\033[105m"; /* Pink cheeks */ + colors[','] = "\033[104m"; /* Blue background */ + colors['.'] = "\033[107m"; /* White stars */ + colors['\''] = "\033[40m"; /* Black border */ + colors['@'] = "\033[47m"; /* Tan poptart */ + colors['$'] = "\033[105m"; /* Pink poptart */ + colors['-'] = "\033[101m"; /* Red poptart */ + colors['>'] = "\033[101m"; /* Red rainbow */ + colors['&'] = "\033[43m"; /* Orange rainbow */ + colors['+'] = "\033[103m"; /* Yellow Rainbow */ + colors['#'] = "\033[102m"; /* Green rainbow */ + colors['='] = "\033[104m"; /* Light blue rainbow */ + colors[';'] = "\033[44m"; /* Dark blue rainbow */ + colors['*'] = "\033[100m"; /* Gray cat face */ + colors['%'] = "\033[105m"; /* Pink cheeks */ } else if (!strcmp(response, "3")) { - colors[','] = "\033[25;44m"; /* Blue background */ - colors['.'] = "\033[5;47m"; /* White stars */ - colors['\''] = "\033[25;40m"; /* Black border */ - colors['@'] = "\033[5;47m"; /* Tan poptart */ - colors['$'] = "\033[5;45m"; /* Pink poptart */ - colors['-'] = "\033[5;41m"; /* Red poptart */ - colors['>'] = "\033[5;41m"; /* Red rainbow */ - colors['&'] = "\033[25;43m"; /* Orange rainbow */ - colors['+'] = "\033[5;43m"; /* Yellow Rainbow */ - colors['#'] = "\033[5;42m"; /* Green rainbow */ - colors['='] = "\033[25;44m"; /* Light blue rainbow */ - colors[';'] = "\033[5;44m"; /* Dark blue rainbow */ - colors['*'] = "\033[5;40m"; /* Gray cat face */ - colors['%'] = "\033[5;45m"; /* Pink cheeks */ + colors[','] = "\033[25;44m"; /* Blue background */ + colors['.'] = "\033[5;47m"; /* White stars */ + colors['\''] = "\033[25;40m"; /* Black border */ + colors['@'] = "\033[5;47m"; /* Tan poptart */ + colors['$'] = "\033[5;45m"; /* Pink poptart */ + colors['-'] = "\033[5;41m"; /* Red poptart */ + colors['>'] = "\033[5;41m"; /* Red rainbow */ + colors['&'] = "\033[25;43m"; /* Orange rainbow */ + colors['+'] = "\033[5;43m"; /* Yellow Rainbow */ + colors['#'] = "\033[5;42m"; /* Green rainbow */ + colors['='] = "\033[25;44m"; /* Light blue rainbow */ + colors[';'] = "\033[5;44m"; /* Dark blue rainbow */ + colors['*'] = "\033[5;40m"; /* Gray cat face */ + colors['%'] = "\033[5;45m"; /* Pink cheeks */ } else if (!strcmp(response, "4")) { - colors[','] = "\033[44m"; /* Blue background */ - colors['.'] = "\033[47m"; /* White stars */ - colors['\''] = "\033[40m"; /* Black border */ - colors['@'] = "\033[47m"; /* Tan poptart */ - colors['$'] = "\033[45m"; /* Pink poptart */ - colors['-'] = "\033[41m"; /* Red poptart */ - colors['>'] = "\033[41m"; /* Red rainbow */ - colors['&'] = "\033[43m"; /* Orange rainbow */ - colors['+'] = "\033[43m"; /* Yellow Rainbow */ - colors['#'] = "\033[42m"; /* Green rainbow */ - colors['='] = "\033[44m"; /* Light blue rainbow */ - colors[';'] = "\033[44m"; /* Dark blue rainbow */ - colors['*'] = "\033[40m"; /* Gray cat face */ - colors['%'] = "\033[45m"; /* Pink cheeks */ + colors[','] = "\033[44m"; /* Blue background */ + colors['.'] = "\033[47m"; /* White stars */ + colors['\''] = "\033[40m"; /* Black border */ + colors['@'] = "\033[47m"; /* Tan poptart */ + colors['$'] = "\033[45m"; /* Pink poptart */ + colors['-'] = "\033[41m"; /* Red poptart */ + colors['>'] = "\033[41m"; /* Red rainbow */ + colors['&'] = "\033[43m"; /* Orange rainbow */ + colors['+'] = "\033[43m"; /* Yellow Rainbow */ + colors['#'] = "\033[42m"; /* Green rainbow */ + colors['='] = "\033[44m"; /* Light blue rainbow */ + colors[';'] = "\033[44m"; /* Dark blue rainbow */ + colors['*'] = "\033[40m"; /* Gray cat face */ + colors['%'] = "\033[45m"; /* Pink cheeks */ } else { printf("\033[H\033[2J"); printf("I'm sorry, what was that?\n");