Solved

A graphic mouse in TEXT mode

Posted on 1997-09-19
4
412 Views
Last Modified: 2006-11-17
I'm looking for a way to creat a graphic cursor in TEXT mode to a mouse, I know that the definishion need to be something with longint I.E. the shape of the cursor + the mask....
I want to put it in my mouse unit...

Thank you very mooch
0
Comment
Question by:Ido_Kanner_Log_In
  • 2
4 Comments
 
LVL 2

Expert Comment

by:kellyjj
ID: 1215893
I think if you telnet/dial into borland's bbs they have mouse units.
0
 

Author Comment

by:Ido_Kanner_Log_In
ID: 1215894
Edited text of question
0
 

Author Comment

by:Ido_Kanner_Log_In
ID: 1215895
Edited text of question
0
 
LVL 10

Accepted Solution

by:
rbr earned 50 total points
ID: 1215896
The define your mouse-cursor in the text mode use function 0Ah of interrupt 33h (mouse-interrupt).
AX=000Ah
BX=0 (0= Software cursor, 1=Hardwarecursor)
CX= And mask
DX= Xor mask

How do you work with these 2 masks.
First the charactercode and the attribut of the character under the mouse is stored in a 16bit number. This number will be anded with the and mask and after this the xor operation will be executed.
So you are mouse cursor can appear in different shapes.

1.) Change the color use the character under the mouse.

CX:=00FFh
DX:=xx00H  xx= is the color

2.) Change the character use the color of the character under the mouse
CX:=FF00h
DX:=00xxh  xx= is the new character

3.) Keep the character invert the color.
CX:=FFFFh
DX:=FF00h

and there are much more combinations.




0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
change the mouse cursor 1 1,001
Listen keywords are been pressed 3 334
qrdesign delphi 5 pdf 5 454
Embedded MySQL not working when installed in a folder with a dot 4 311
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
The question appears often enough, how do I transfer my data from my old server to the new server while preserving file shares, share permissions, and NTFS permisions.  Here are my tips for handling such a transfer.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question