TIP: Click on subject to list as thread! ANSI
echo: public_domain
to: Bek Oberin
from: Frank Malcolm
date: 1995-07-12 20:48:08
subject: Cursor manipulation

Hi, Bek.

BO> A long, long, time ago I had some cursor manipulation routines in
BO> assembler...  I think.  At least, I haven't got any now and I need 'em -
BO> nothing fancy, just on/off.

BO> Anybody gonna volunteer?

Try these Pascal ones...

const LargeCursorNeeded: boolean = false;
const HiddenCursor = $2000;
      NormalCursor = $0607;
      LargeCursor  = $0307;

var CrtMode: byte absolute $40:$49;

procedure SetCursor (C: word);
var Regs: Registers;
begin
Regs.AH := 1; Regs.CX := C; Intr ($10, Regs);
end;

procedure ShowCursor;
begin
if CrtMode = 7 then
  if LargeCursorNeeded then
    SetCursor ($070C)
  else
    SetCursor ($0B0C)
else
  if LargeCursorNeeded then
    SetCursor (LargeCursor)
  else
    SetCursor (NormalCursor);
end;

procedure HideCursor;
begin
SetCursor (HiddenCursor);
end;

Regards, FIM.

 * * Cow's breath attracts mosquitoes and tsetse flies!
@EOT:

---
* Origin: Pedants Inc. (3:711/934.24)
SEEN-BY: 690/718 711/809 934
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.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™.