Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!pacbell.com!decwrl!sgi!shinobu!odin!horus.esd.sgi.com!thant From: thant@horus.esd.sgi.com (Thant Tessman) Newsgroups: comp.sys.sgi Subject: Re: gclear Message-ID: <1990Oct9.014842.6573@odin.corp.sgi.com> Date: 9 Oct 90 01:48:42 GMT References: <907@laic.UUCP> Sender: news@odin.corp.sgi.com (Net News) Reply-To: thant@horus.esd.sgi.com (Thant Tessman) Organization: Silicon Graphics Inc. Lines: 20 In article <907@laic.UUCP>, trimble@laic.UUCP (Gary Trimble) writes: > Is there a programmatic way to do a gclear? I have an application that > requires it before the mouse will respond to the motions over the entire > screen. Please email or post. One of the things 'gclear' does is reset the mouse valuators. If your mouse is stuck, all your program may need to do is: setvaluator(MOUSEX, getvaluator(MOUSEX), 0, getgdesc(GD_XPMAX)-1); setvaluator(MOUSEY, getvaluator(MOUSEY), 0, getgdesc(GD_YPMAX)-1); If it is something else, you can do a system("gclear"); Good luck, thant