Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!dalcs!aucs!831059l From: 831059l@aucs.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: Turning the cursor off Message-ID: <588@aucs.UUCP> Date: Tue, 24-Nov-87 07:59:03 EST Article-I.D.: aucs.588 Posted: Tue Nov 24 07:59:03 1987 Date-Received: Fri, 27-Nov-87 04:42:34 EST Reply-To: 831059l@aucs.UUCP (STEVEN LUCIEN LANGLOIS) Distribution: na Organization: School of Computer Science, Acadia Univ., Nova Scotia Lines: 37 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