user
info

Beepy patch for Blinky

This patch will make Blinky beep everytime it blinks your cursor.

--- blink.c.orig Fri Dec 1 11:11:07 2000 +++ blinky.c Fri Dec 1 11:09:59 2000 @@ -10,9 +10,10 @@ exit(1); } -main() +main(int argc, char* argv[]) { FILE *blinkout; + int beep = 0; blinkout = fopen("/tmp/blinkout", "w"); fprintf(blinkout, "%d", getpid()); @@ -22,8 +23,15 @@ exit(-1); } + if (argc > 1) { + if (!strcmp(argv[1], "-beep")) + beep = 1; + } + while (1) { + if (beep) + printf("\a"); printf("\e[?25h"); fflush(stdout); usleep(400000); /* on time */ @@ -32,3 +40,5 @@ usleep(250000); /* off time */ } } + +

Download this patch
View the man page