Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!cs.umn.edu!thelake!steve From: steve@thelake.mn.org (Steve Yelvington) Newsgroups: comp.sys.atari.st.tech Subject: Re: C function wanted Message-ID: Date: 17 Apr 91 13:14:28 GMT References: Organization: St. Croix Valley C and Ski Lines: 30 [In article , marco@sys6626.bison.mb.ca (Marco) writes ... ] > I'm not sure if there is such a fuction, but I would like to know the C > function for blanking the screen. Many ACCs have it and I still haven't > found one that suits my needs. If anyone could post a message containing > this (if it's short) or e-mail me it (if it's long) I would greatly > appreciate it. The UManitoba ether mailer has no idea where you are, so ... Do you want to clear the screen or black it? Two different things. If the latter, try saving the palette and resetting it to zeroes. int oldpal[16], i; int pal[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; for (i=0;i<16;i++) oldpal[i] = Setcolor(i,-1); /* save old palette */ Setpalette(p); /* set new palette */ ... Setpalette(oldpal); /* restore original palette */ Note: This is off-top-of-head, untested code. Corrections welcome. I have no idea how an STE or TT would react to this code. ---- Steve Yelvington, Marine on St. Croix, Minnesota, USA / steve@thelake.mn.org