Path: utzoo!utgpu!watserv1!watmath!att!att!iuvax!ux1.cso.uiuc.edu!osiris.cso.uiuc.edu!gordon From: gordon@osiris.cso.uiuc.edu (John Gordon) Newsgroups: comp.lang.c Subject: Re: Need help with MS-DOS cursor functions Message-ID: <1990Nov1.172541.23976@ux1.cso.uiuc.edu> Date: 1 Nov 90 17:25:41 GMT References: <1990Oct31.200612.9600@agate.berkeley.edu> Sender: news@ux1.cso.uiuc.edu (News) Distribution: na Organization: University of Illinois at Urbana Lines: 39 Here you go. /****************** * cursor.c ******************/ #include #include void cursor_on(void) /* turns the cursor off, using an interrupt */ { union REGS r; r.h.ah = 1; /* 1 is the cursor-modifying portion of structure r */ r.h.ch = 6; /* starting scan line for cursor */ r.h.cl = 7; /* ending scan line */ int86(0x10, &r, &r); } void cursor_off(void) /* turns the cursor on, using an interrupt */ { union REGS r; r.h.ah = 1; /* 1 is the cursor-modifying portion of structure r */ r.h.ch = -1; /* starting scan line (neg. means turn off) */ r.h.cl = 0; /* ending scan line */ int86(0x10, &r, &r); } --- John Gordon Internet: gordon@osiris.cso.uiuc.edu #include gordon@cerl.cecer.army.mil #include GEnie: j.gordon14