[unix-pc.sources] kill the arrow?

rjg@sialis.mn.org (Robert J. Granvin) (07/29/88)

In article <1202@flatline.UUCP> erict@flatline.UUCP (j eric townsend) writes:
>In article <6092@chinet.chi.il.us>, dsueme@chinet.chi.il.us (dave sueme) writes:
>> Is it possible to kill that goddamned arrow?  How?
>
>
>Unplug the mouse and re-boot the machine.  Simple.

Not so simple.  After a short while, the arrow returns.

Attached below is a simple little routine written by Mark Colburn
(mark@jhereg.mn.org ... credit is given... :-) which will toast the
arrow.  

To make the arrow go away, move it into the main window and run mouse.
If you leave the mouse in it's default start position and run mouse,
the arrow won't go away until you move it into the window.  This is
all I needed it to do, so that's as far as it went.  At least it's a
start if anyone wants to add to it, and if they do, please send it
along.

We thank you for your support.  :-)

----snipsnipsnip----snipsnipsnip----snipsnipsnip----snipsnipsnip----

/* mouse.c */

#include <stdio.h>
#include <sys/window.h>
#include <sys/font.h>
#include <sys/wd.h>
#include <track.h>


int
main(argc, argv)
    int			argc;
    char               *argv[];
{
    struct umdata	mouseinfo;
    int			turnon;
    void		usage();
    struct icon		myicon;

    if (argc != 2) 
	usage();
    if (argv[1][0] == '1')
	turnon = 1;
    else if (argv[1][0] == '0')
	turnon = 0;
    else usage();

	
    ioctl(0, WIOCGETMOUSE, &mouseinfo);

    if (turnon == 1) 
	mouseinfo.um_icon = (struct icon *)NULL;
    else 
	mouseinfo.um_icon = &myicon;

    ioctl(0, WIOCSETMOUSE, &mouseinfo);
}

void
usage()
{
    fprintf(stderr, "mouse: [ 0 | 1 ]\n");
    exit(1);
}


----snipsnipsnip----snipsnipsnip----snipsnipsnip----snipsnipsnip----

-- 
"I've been trying for some time to                           Robert J. Granvin
 develop a life-style that doesn't          National Information Systems, Inc.
 require my presence."                                       rjg@sialis.mn.org
    -Garry Trudeau                ...{{amdahl,hpda}!bungia,rosevax}!sialis!rjg

erict@flatline.UUCP (j eric townsend) (07/31/88)

In article <692@sialis.mn.org>, rjg@sialis.mn.org (Robert J. Granvin) writes:
> In article <1202@flatline.UUCP> erict@flatline.UUCP (j eric townsend) writes:
> >In article <6092@chinet.chi.il.us>, dsueme@chinet.chi.il.us (dave sueme) writes:
> >> Is it possible to kill that goddamned arrow?  How?
> >
> >Unplug the mouse and re-boot the machine.  Simple.
> 
> Not so simple.  After a short while, the arrow returns.

What version are you running?  I've got 3.0, the arrow never returns...

Well, unless you plug it back in... :-)



-- 
Motorola Skates on Intel's Head!
J. Eric Townsend ->uunet!nuchat!flatline!erict smail:511Parker#2,Hstn,Tx,77007
             ..!bellcore!tness1!/

rjg@sialis.mn.org (Robert J. Granvin) (08/01/88)

>> Not so simple.  After a short while, the arrow returns.
>
>What version are you running?  I've got 3.0, the arrow never returns...

3.5 or greater is all I've had the willingness to run.  :-)  Currently
it's 3.51a.  The arrow always returns after a time...

-- 
"I've been trying for some time to                           Robert J. Granvin
 develop a life-style that doesn't          National Information Systems, Inc.
 require my presence."                                       rjg@sialis.mn.org
    -Garry Trudeau                ...{{amdahl,hpda}!bungia,rosevax}!sialis!rjg

aaron@proxftl.UUCP (Aaron Zimmerman) (08/01/88)

>>> Is it possible to kill that goddamned arrow?  How?
>> Unplug the mouse and re-boot the machine.  Simple.
> Not so simple.  After a short while, the arrow returns.
>
> Attached below is a simple little routine written by Mark Colburn
> which will toast the arrow.

I don't really need to "toast" my arrow, but I would like to change its
image (to something smaller). Surely the mask for the arrow is stored some-
place easily accessable? Surely somebody knows how I can change it?
Much appreciated.

-- 

Aaron   \  Proximity Technology  | #include <disclaimer.h> | +---------------+
Charles  \   3511 N-E 22nd Ave.  |                         | | find the fish |
Zimmerman \    Fort Ladeda, Fla  |  cat flames >/dev/null  | +---------------+

steveb@shade.UUCP (Steve Barber) (08/08/88)

In article <556@proxftl.UUCP> aaron@proxftl.UUCP (Aaron Zimmerman) writes:
> I don't really need to "toast" my arrow, but I would like to change its
> image (to something smaller). Surely the mask for the arrow is stored some-
> place easily accessable? Surely somebody knows how I can change it?
> Much appreciated.

On a similar note, I'm sort of tired of the exclusive-or nature of the
arrow (not that I use it that much anymore).  At what level is this
implemented?  If it's in a driver, has anyone made the arrow work "right"?
(i.e. saving/restoring the background, with an arrow icon and a background
mask)

> -- 
> 
> Aaron   \  Proximity Technology  | #include <disclaimer.h> | +---------------+
> Charles  \   3511 N-E 22nd Ave.  |                         | | find the fish |
> Zimmerman \    Fort Ladeda, Fla  |  cat flames >/dev/null  | +---------------+

-- 
Steve Barber   ...!umix!shade!steveb   "Did I say that?"