diff options
author | Kevin Lange <kevin.lange@dakko.us> | 2011-11-30 01:23:53 -0600 |
---|---|---|
committer | Kevin Lange <kevin.lange@dakko.us> | 2011-11-30 01:23:53 -0600 |
commit | 3b7a7a1381a203586217c1447a601e369d06895a (patch) | |
tree | 03c48962c3c8a38b48fe38a3ca1e1d12eb8d6553 | |
parent | ffa07d6398ff825518ea3f6652a3e866465ad6be (diff) | |
download | nyancat-3b7a7a1381a203586217c1447a601e369d06895a.tar.gz |
Ready to push.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | nyancat.c | 84 |
3 files changed, 45 insertions, 42 deletions
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 @@ -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"); |