#: 17598 S12/OS9/68000 (OSK)
04-Mar-93 00:04:15
Sb: #17575-#C help
Fm: Mike Haaland 72300,1433
To: LARRY OLSON 72227,3467 (X)
Larry,
Here's a simple CurXY() routine. In fact it's the same as in the MM/1 cgfx.l
CurXY(path,x,y)
int path, x, y;
{
unsigned char buff[3];
buff[0] = 0x02;
buff[1] = (x + 0x20) & 0xff;
buff[2] = (y + 0x20) & 0xff;
return ( write(path,buff,3) );
}
Really not all that difficult. LOW I/O write() and read() vs. puts() and
gets() is unbuffered and much faster to windows. BTW the above returns -1
on error with the error code placed in errno.
- Mike -
There is 1 Reply.
|