Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: sytek!syteka.ARPA!sridhar@hplabs.hp.com (Sridhar Acharya) Newsgroups: comp.sys.sun Subject: Re: Ending a SunView Application Keywords: Windows Message-ID: <4247@kalliope.rice.edu> Date: 28 Jun 89 16:09:46 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 32 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 8, Issue 62, message 1 of 10 (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