Path: utzoo!utgpu!watmath!clyde!att!rutgers!mailrus!tut.cis.ohio-state.edu!schooner.cis.ohio-state.edu!schanck
From: schanck@schooner.cis.ohio-state.edu (Christopher Schanck)
Newsgroups: comp.sys.ibm.pc
Subject: Re: Turn on/off cursor?
Message-ID: <28982@tut.cis.ohio-state.edu>
Date: 2 Dec 88 19:08:18 GMT
References: <44479@yale-celray.yale.UUCP> <350@sunny.UUCP>
Sender: news@tut.cis.ohio-state.edu
Distribution: na
Organization: The Ohio State University Dept of Computer and Information Science
Lines: 22

In article <350@sunny.UUCP> poage@sunny.UUCP (Tom Poage) writes:
>In article <44479@yale-celray.yale.UUCP> spolsky-joel@CS.Yale.EDU (Joel Spolsky) writes:
>>How do you turn off the cursor and turn it on again?
>
>Try INT 10H with
>	AH = 01H ;set the number of scan lines to zero with CX for off.
>	AH = 03H ;read cursor size in scan lines (CX) and location.
There is a problem with this method; EGA and CGA cards handle cursor height
start and end scan lines differently. You would have to write a seperate
version for CGA and EGA, and probably one for VGA and monochrome, though
I am not sure. Writing seperate versions means you need to know which the
system is running, which is a pain. A couple years ago PC magazine did an
article on this (it was around when EGA carss first came out). 
>Tom.
Chris



-=-
"My brain is NOT a deadlock-free environment!!!!"
--- Christopher Schanck, mammal at large.
schanck@flounder.cis.ohio-state.edu