LOCATE Doesn't Turn Off Cursor After INTERRUPT Loads User Font (57670)
The information in this article applies to:
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
- Microsoft Basic Professional Development System for MS-DOS 7.0
This article was previously published under Q57670 SUMMARY
The LOCATE statement can be used to turn the cursor off. This is done
by passing zero (0) as the third parameter, as in the following
example:
LOCATE ,,0
However, the ability of LOCATE to turn off the cursor is disabled when
interrupt 10 hex, function 11 hex, subfunction 0 is called. In fact,
the interrupt routine itself turns the cursor on. This interrupt call
(which requires an EGA card and the use of SCREEN 0) causes the video
card to use a block of memory in RAM for generating ASCII characters,
rather than the ROM default ASCII characters.
To turn the cursor off in this instance, interrupt 10 hex, function 1
must be called. The program below illustrates how this is done.
This information applies to Microsoft QuickBasic Versions 4.00, 4.00b,
and 4.50 for MS-DOS, to Microsoft Basic Compiler Versions 6.00 and
6.00b for MS-DOS, and to Microsoft Basic Professional Development
System (PDS) Version 7.00 for MS-DOS.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB57670 |
---|
|