tims@zeus.UUCP (Tim Stoehr) (11/19/86)
Please folks, no flames, this program is meant to generate a few grins, that's all. I was insane when I wrote it, OK. To compile: cc bite.c -lcurses -ltermlib Stop program with SIGINT or SIGQUIT(^C or ^\). #!/bin/sh-----cut here-----cut here-----cut here-----cut here----- # shar: Shell Archiver # Run the following text with /bin/sh to create: # bite.c cat - << \SHAR_EOF > bite.c #include <curses.h> #include <signal.h> char *skull[16] = { " __---------__", " _~ ~_", " / \\", " ~ ~", " / \\", " | |", " | |", " | |", " \\ /", " --\\ /--", " | | | |", " | | | |", " | |", " | |", " \\_ _/", " ~---------~" }; main() { short i; int terminate(); initscr(); signal(SIGINT, terminate); signal(SIGQUIT, terminate); for (i = 0; i < 16; i++) { mvaddstr(i+2, 0, skull[i]); } standout(); mvaddch(10, 36, '@'); mvaddstr(11, 35, "@@@"); mvaddstr(12, 35, "@@@"); mvaddstr(7, 30, "XXXX"); mvaddstr(7, 39, "XXXX"); mvaddstr(8, 30, "XXXX"); mvaddstr(8, 39, "XXXX"); mvaddstr(9, 30, "XXX"); mvaddstr(9, 40, "XXX"); standend(); refresh(); mvaddstr(14, 30, "vvVvvvvvvvVvv"); for (;;) { mvaddstr(15, 31, "^^^^^^^^^^^"); move(15, 0); refresh(); sleep(1); mvaddstr(15, 31, " "); mvaddstr(16, 31, "^^^^^^^^^^^"); move(16, 0); refresh(); sleep(1); mvaddstr(16, 31, " "); } } terminate() { move(LINES-1, 0); refresh(); standend(); endwin(); exit(0); } SHAR_EOF