Article View: comp.sys.atari.st
Article #27383PD UUCICO(?), Motionless Mice, & VDI Blues
From: Herb Zinn
Date: Fri, 26 Jun 1987 21:41
Date: Fri, 26 Jun 1987 21:41
80 lines
3265 bytes
3265 bytes
Summary: Don'tcha mean uuslave?, & why I hate VDI
Keywords: Uucico, Mice, VDI, MWC 2.0, Keywords, Uucico, Mice,...
Greetings!
First of all, since this site recently started receiving comp.sys.atari.st after
unclogging, I think I've missed something... What's this PD UUCICO?
I'm definately interested, and I'd appreciate it if anyone can post it to the
net (if it's not already on its way and it's really a PD uucico).
Secondly, any homebrew appl.'s that I write using MWC that use VDI calls cause
the mouse to lock up upon returning to either the desktop OR the MWC (V.2.0)
shell. However, no other facet of normal system operation is (apparently)
affected.
Finally, the following segment of code WILL work if I insert a debugging
printf inbetween every VDI call but seems to whiz right by the whole shebang
if I don't.
/*_______________/ Cut, fold, and seal here. /_______________*/
#include <aesbind.h>
#include <gemdefs.h>
#include <vdibind.h>
#include <osbind.h>
/* global line A variables used by VDI (DEFINE OR ELSE!) */
int contrl[12], intin[128], ptsin[128], intout[128], ptsout[128];
int work_in[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2 };
int work_out[57];
int pxyarray[4];
int vdihandle;
int nowhere = 0;
Rect norect = { 0, 0, 0, 0 };
int rand();
main (argc, argv) int argc; char *argv[]; {
int x, y, x0, y0, dx, dy, xabs, yabs, xmax, ymax, xrand, yrand, click;
int cliparray[4] = { 1, 1, 639, 399 };
appl_init();
vdihandle = graf_handle(&nowhere, &nowhere, &nowhere, &nowhere);
v_opnvwk(work_in, &vdihandle, work_out);
vs_clip(vdihandle, 1, cliparray);
xrand = work_out[0];
yrand = work_out[1];
do {
vswr_mode(vdihandle, 1);
vclrwk(vdihandle);
vswr_mode(vdihandle, 3);
vsl_width(vdiandle, (2 * (rand() % 6)));
x = y = 0;
dx = dy = 1;
do { ** some stuff */
click=Cconis();
} while (click != -1);
while (click != -1);
v_clsvwk(vdihandle);
appl_exit();
exit();
} /* procrastinators untltd. */
/*____________________/ End of source /_______________________*/
My original test printf's came after every VDI call up to the dx = dy = 1
assignment.
Any .c's or .s's would be greatly appreciated; however please send all flames
concerning the length of this to your own /dev/console. You'll like what
happens 8->.
In advance, thanks!
Herb
__________________________________
__________/ Net.Disclaimer: What, me worry? \__________
/ UUCP: {ihnp4!petro||cbosgd||sun!texsun!rrm}!ssbn!hzinn \
\ USPS: 6211 N. Artesian Ave., Chicago, Ill., 60659-2828 /
--------\ AT&T: Don't call us, we'll call you /--------
--------------------------------------
Technical Details
Message-ID:
<320@ssbn.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!im4u!swrinde!petro!ssbn!hzinnShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!im4u!swrinde!petro!ssbn!hzinn From: hzinn@ssbn.UUCP (Herb Zinn) Newsgroups: comp.sys.atari.st Subject: PD UUCICO(?), Motionless Mice, & VDI Blues Message-ID: <320@ssbn.UUCP> Date: Fri, 26-Jun-87 17:41:48 EDT Article-I.D.: ssbn.320 Posted: Fri Jun 26 17:41:48 1987 Date-Received: Sat, 27-Jun-87 14:09:27 EDT Organization: W.L. Kennedy Jr. & Associates, Pipe Creek, TX Lines: 80