Xref: utzoo unix-pc.general:1173 unix-pc.sources:93 Path: utzoo!utgpu!water!watmath!uunet!labrea!rutgers!umn-d-ub!umn-cs!bungia!sialis!rjg From: rjg@sialis.mn.org (Robert J. Granvin) Newsgroups: unix-pc.general,unix-pc.sources Subject: Re: kill the arrow? Keywords: c frag or PD example? Message-ID: <692@sialis.mn.org> Date: 29 Jul 88 02:00:23 GMT References: <6092@chinet.chi.il.us> <1202@flatline.UUCP> Reply-To: rjg@sialis.mn.org (Robert J. Granvin) Organization: Dr. Ho Laboratory and Day Care Center Lines: 77 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 #include #include #include #include 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