Ending a SunView Application

Sridhar Acharya sytek!syteka.ARPA!sridhar at hplabs.hp.com
Thu Jun 29 02:09:46 AEST 1989


 (rick grubin) writes:
>
>We have an application that, when it runs, uses the entire monitor screen
>as its display.  We have need for a way to stop the SunView processes(es),
>clear the screen, and log out an account when this application is to be
>stopped.  What I am after is something analogous to how SunView works when
>you exit it; that is, you select "Exit SunView" from the menu, and then
>all your windows processes are killed, the screen is cleared, and you are
>logged out (if you fire up SunView from your .login, and choose to exit
>
>Is there some sort of call or sequence of calls to accomplish this task?
>We've been able to successfully stop SunView and its processes, but not
>clear the screen before logout.  Does anyone have any clues/pointers?


Try this:
/*******************************
Pixrect *screen;

screen = pr_open("/dev/fb");
pr_rop(screen,0,0,screen->pr_size.x,screen->pr_size.y,
                                                   PIX_CLR, NULL,0,0);    
pr_close(screen);

************************************/

Hope it helps

Sridhar Acharya
Hughes Lan Systems.
sun!sytek!sridhar



More information about the Comp.sys.sun mailing list