Re:text Cursor

 BBS: Inland Empire Archive
Date: 06-13-92 (03:40)             Number: 370
From: RICH GELDREICH               Refer#: 367
  To: MATT HART                     Recvd: NO  
Subj: Re:text Cursor                 Conf: (2) Quik_Bas
> In non-text mode, using an alternate font, or changing the memory to
> screen handling registers?  I'd be interested in seeing it.
    It's in the normal, good 'ole 80x25 text mode...

    I change the bitmap for characters 220 through 223 for the pointer-
I use standard BIOS calls to do that(I had to use 4 chars since the
pointer can overlap 4 character spaces at the same time). What I do is
get the old characters from the display, find their bitmaps, AND the
pointer's mask and then OR the pointer onto these bitmaps(rotating the
pointer's bitmap the required amount), and then tell BIOS to change
chars 220-223 to these new characters. Then I save the old characters
from screen memory and put chars 220-223 in their places- so the
original characters are still there, except that the cursor is overtop
of them...

    I'll post the assembly code along with it(and maby the QB only
version if I can fit it) along with a PKZIP'd .OBJ file... (it was much
harder than I thought it was! it's amazing that something that seems so
simple can take hours to debug :-)

    What is "changing the memory to screen handling registers"? Just


--- RBBSMAIL 17.2A
 * Origin: Computer Co-Op RBBS HST, 609-784-9404 Voorhees
NJ (RBBS-PC 1:266/29)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET