5751972 [rkeene@sledge /home/rkeene/devel/old/kblockd]$ cat -n svgaclear.c
 1 /*
 2    make an SVGAscreen to cloud peoples minds
 3 */
 4 
 5 #include <vga.h>
 6 #include <stdlib.h>
 7 #include <stdio.h>
 8 #include <signal.h>
 9 #include <unistd.h>
10 
11 
12 void handleInt(void) {
13   exit(0);
14 }
15 
16 int main(int argc, char *argv[]) {
17   if (argc!=2) { return(1); }
18   signal(SIGINT,(void *)handleInt);
19   vga_init();
20   vga_setmode(atoi(argv[1]));
21   sleep(-1);
22   return(0);
23 }
5751973 [rkeene@sledge /home/rkeene/devel/old/kblockd]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 1999-07-23 12:14:45