Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!bellcore!texbell!merch!cpe!hal6000!trsvax!earl
From: earl@trsvax.UUCP
Newsgroups: comp.sys.ibm.pc
Subject: Re: Turn on/off cursor?
Message-ID: <216100072@trsvax>
Date: 2 Dec 88 14:27:00 GMT
References: <44479@yale-celray.yale.UUCP>
Lines: 52
Nf-ID: #R:yale-celray.yale.UUCP:44479:trsvax:216100072:000:1724
Nf-From: trsvax.UUCP!earl    Dec  2 08:27:00 1988



/* ---------- "Turn on/off cursor?" ---------- */
How do you turn off the cursor and turn it on again? I need a method
that works well for all video types and I would like to be able to
restore the cursor to its original shape when the program exits.

Assembler, C, whatever...

Thanks very much,

+----------------+----------------------------------------------------------+
|  Joel Spolsky  | bitnet: spolsky@yalecs.bitnet     uucp: ...!yale!spolsky |
|                | internet: spolsky@cs.yale.edu     voicenet: 203-436-1483 |
+----------------+----------------------------------------------------------+

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

     According to my handy BIOS reference manual you might try the Video
Display BIOS Function call 10 hex (16 dec).

Set the cursor type and attribute

	AH = 1
	CH = "bit values"
		bits 5-6:
		bit 6:	bit 5:
		  0	  0   =  non-blink   ====>  Likely what you
		  0       1   =  invisible   ====>   want here.
		  1       0   =  blink (slow)
		  1       1   =  blink (fast)
                bits 4-0 = the start line for the cursor within a character
				cell
	CL = "bit values"
		bits 4-0 = the end line for the cursor within a character
				cell

***********************************************************************


 
						
						Earl W. Bollinger
						@ 


"You were in the Clone Wars!", said Luke excitedly.
"Yes", replied Obi Wan, "I was a DOS programmer. But that was before the dark
 times, before OS2."