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 } |