Solved

A graphic mouse in TEXT mode

Posted on 1997-09-19
4
406 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
Comment Utility
I think if you telnet/dial into borland's bbs they have mouse units.
0
 

Author Comment

by:Ido_Kanner_Log_In
Comment Utility
Edited text of question
0
 

Author Comment

by:Ido_Kanner_Log_In
Comment Utility
Edited text of question
0
 
LVL 10

Accepted Solution

by:
rbr earned 50 total points
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
A procedure for exporting installed hotfix details of remote computers using powershell
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now