home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
screen
/
curs_on.off
< prev
next >
Wrap
Internet Message Format
|
1992-09-08
|
969b
Date: Sunday, 8 June 1986 00:24-MDT
From: brad%looking.UUCP at seismo.CSS.GOV (Brad Templeton)
Re: Turbo Cursor Off/On
IBM-PCs have an official way to deal with screen functions. (This has
*nothing* to do with MS-DOS, by the way). These routines aren't
perfect, but there is little excuse for not using them unless you want
something that they can't do.
Turbo Pascal & compatible systems have a built-in routine called
"intr" that makes interfacing to these routines easy. Most C compilers
have a similar routine.
INT 10, function 15 (ah register) gets you the screen mode. 7 is
monochrome adapter, anything less is colour adapter or compatible,
more is EGA or other card. Function 8 is cursor addressing. Put -1 in
dx and the cursor goes away.
(I will admit that the above -1 is not documented, but it's still
better than poking around in the BIOS ram!)
--
Brad Templeton, Looking Glass Software Ltd. - Waterloo, Ontario 519/884-7473