www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/09/17:00:23

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: cursor
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <qt6m0tgu99umvmue8non3c27ljp4ifuk5b@4ax.com>
References: <8udus7$jmh$1 AT lacerta DOT tiscalinet DOT it> <Pine DOT UW2 DOT 3 DOT 95 DOT 1001109204904 DOT 14458A-100000 AT bryggen DOT bgnett DOT no> <20001109143617 DOT A22025 AT kendall DOT sfbr DOT org>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
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 <jeffw AT darwin DOT sfbr DOT org>
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.

-- 
<O
( \   GNOME vs. KDE: the game!
 X    http://pineight.8m.com/nes.htm

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019