On Fri, Oct 13, 2000 at 11:53:15PM +0000, [EMAIL PROTECTED] wrote:
> After I invoke the following program, the screen isn't cleared (i.e., the console 
>remains
> visible) - it looks like this (if I run "clear" at the command line before
> invoking the program):
> 
> manel@rolling:~/programas$ pixel
> LibGG: unable to open lib: /usr/local/lib/ggi/default/fbdev/kgi/genkgi.so:
> cannot open shared object file: No such file or directory

This message just means that GGI couldn't use KGI. It will fall back to using other
targets such as fbcon instead. Don't worry about this one.
 
> Then I press "Enter" and the prompt returns... When I ran some of the
> available demo programs, I also got this error message, but the app worked


> [LOTS OF SOURCE SNIPPED]
>
>   ggiPutPixel(vis,0,0,white);
>   ggiClose(vis);
>   ggiExit();
>   
>   getchar();
> 
>   return 0;
> }      

Here, when you run ggiClose(vis), the image produced on the screen by the program
is removed and the text display is returned. I'm pretty sure it will work as you
want it if you put the getchar() call before ggiClose(vis). (It may be advisable
to use ggiGetc(), though, as that will work on all targets.)

-- 
                                           Niklas

Reply via email to