I am trying to use the following program given in the libsvga tutorial.
#include <stdlib.h>
#include <vga.h>
int main(void)
{
vga_init();
vga_setmode(vga_getdefaultmode());
vga_setcolor(4);
vga_drawpixel(10, 10);
sleep(5);
vga_setmode(TEXT);
return EXIT_SUCCESS;
}
I am using following command to compile it
gcc -O3 -o sample sample.c -lvga
The output is the following
Using EGA driver
svgalib 1.4.3
and after that nothing happens. I am using ubuntu. I am wondering if someone can help me in figuring out the problem.