From: Matan Ziv-Av <ma...@sv...> - 2001-05-27 12:54:58
|
Hi, I'm sorry if it is not the approrpriate forum for this question, but I did not find a better one: How do I make the the text contents of the console redraw at the end of a fb using program? The following program works as expected (on PPC, aty128fb) - paints the top of the screen blue. When it exits the screen remains blue. A console switch to another VC and back clears the blue and draws the text that was there. What I want is to have this happen automatically at program's exit. int main() { int fd, i; unsigned char *c; fd=open("/dev/fb0", O_RDWR); c=mmap(0,0x10000, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); for(i=0; i<0x10000; i++) *(c+i)=1; sleep(2); close(fd); return 0; } -- Matan Ziv-Av. ma...@sv... |