#: 17574 S12/OS9/68000 (OSK)
26-Feb-93 07:32:10
Sb: #17573-#C help
Fm: Bill Dickhaus 70325,523
To: LARRY OLSON 72227,3467 (X)
Larry,
First you have to turn off buffering for stdout, like this:
setbuf(stdout, NULL);
Then you should be able to do something like:
puts("\0x1F\0x28");
For mouse positioning, it might be easier to do this:
char mouse_pos[7];
unsigned short x, y;
mouse_pos[0] = 0x1b;
mouse_pos[1] = 0x4e;
mouse_pos[6] = 0;
mouse_pos[2] = x >> 8;
mouse_pos[3] = x & 0xFF;
mouse_pos[4] = y >> 8;
mouse_pos[5] = y & 0xFF;
puts(mouse_pos);
There are probably better ways to do this, this is just off the top of my head.
There's also a cgfx.l for KWindows floating around somewhere, but I don't know
if it has calls for the mouse, I would assume it does.
-Bill-
There are 2 Replies.
|