TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: LARRY OLSON 72227,3467 (X)
from: Mike Haaland 72300,1433
date: 1993-03-04 00:04:15
subject: #17575-#C help

#: 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.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.