TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: LARRY OLSON 72227,3467 (X)
from: Bill Dickhaus 70325,523
date: 1993-02-26 07:32:10
subject: #17573-#C help

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

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™.