From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: cursor Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <8udus7$jmh$1 AT lacerta DOT tiscalinet DOT it> <20001109143617 DOT A22025 AT kendall DOT sfbr DOT org> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 30 X-Trace: /ba9QcUP23Ifb0FLbHvPEqjN/q5nbhu9/hFXRNr0DbXOQkcfqO7TemS5Or6Wb6c8ViWdpemCaa+c!SW579rux8ToBDQF42etYUOgMm41iaMzvK8rHvsz5uF0cypqHhgAD/qbvGcZy9snltdb2ThuGUCts!t+tqOA== X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Thu, 09 Nov 2000 21:51:15 GMT Distribution: world Date: Thu, 09 Nov 2000 21:51:15 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Thu, 9 Nov 2000 14:36:17 -0600, JT Williams wrote: >-: > Is it possibile to reduce the cursor to a vertical line? >-: >-: There is Int10/AH=1 for changing the cursor scan-lines. >-: CL/CH=cursor start/end scan lines. But this only makes an horizontal >-: or "fatter" cursor. > >This topic has some things in common with the recent thread "Re: Mouse >cursor in text-mode". Here, however, it seems that the task should be >much simpler. All we want to do is provide a tiny 1-char bitmap that >is used to draw the text-mode cursor---there is no mouse cursor position >to manage. In fact, it might be sufficient if you could just tell the >BIOS to use one of the upper 128 PC chars as a cursor. You'll have to write your own input and output routines, but you're probably doing that anyway if you're using user interaction more complicated than fgets(). What you do is overwrite unused glyph 0xff in EGA/VGA font memory (there's a BIOS call for this) with the OR of the cursor and glyph under the cursor, and then write character 0xff to the cursor's current position on the screen. --