svgalib hack
/* stars.c (C) under GPL at 1999, AtH//HPG@hMoscow
*
* You can use svgalib to write graphic games, very like this hack.
* But you must be root. How to become root is another lesson. ;-)
* Compile this:
*
* gcc stars.c -o stars -lvga
*/
#include <vga.h>
#include <stdlib.h>
void main(void)
{ vga_init();
vga_setmode(G320x200x256);
while(vga_getkey()==0) vga_setcolor(rand()&255),
vga_drawpixel(rand()%320,rand()%200);
vga_setmode(TEXT);
}