831059l@aucs.UUCP (11/24/87)
Turning the cursor off and on is really quite easy using the
BIOS video interrupt 10h function 3. Setting bit 5 of ch (starting scan
line of the cursor) to 1 turns the cursor off. This has always worked
for me on any machine I've used. The following is assemly code to
turn the cursor off and on:
;******************************************************************
;
; void cursoff(void)
;
;******************************************************************
_cursoff proc near
mov ah,3h ; find what the cursor currently looks like
int 10h
mov ah,1h ; bios video interrupt to set cursor size
or ch,20h ; setting bit 5 of ch to 1 turns the cursor off
int 10h
ret
_cursoff endp
;******************************************************************
;
; void curson(void)
;
;******************************************************************
_curson proc near
mov ah,3h ; find what the cursor currently looks like
int 10h
mov ah,1h ; bios video interrupt to set cursor size
and ch,0dfh ; setting bit 5 of ch to 0 turns the cursor on
int 10h
ret
_curson endp
Steven Langlois Acadia Univ. Wolfville NS Canada B0P1X0
BITNET:{uunet|watmath|utai|garfield}dalcs!aucs!831059L UUCP:831059L@Acadia