The information in this article applies to:
SUMMARYThe program example included below demonstrates how to use the CALL INTERRUPT statement to enable blinking text in screen modes 7, 8, 9, 12, and 13. MORE INFORMATION
Interrupt 10h, with function 10h and subfunction 03h, can be used to
toggle the blink/intensity bit on the video card. This determines
whether the most-significant bit of the character attribute selects a
blinking or intensified display. The default is for this bit to
signify intensified display.
Interrupt 10hRunning the following program, BLINK.BAS, enables and disables blinking characters:
Compile and link with Microsoft QuickBasic fodr MS-DOS, versions 4.0,
4.0b, and 4.5 or with Microsoft Basic Compiler for MS-DOS, versions 6.0
and 6.0b as follows:
The "xx" in the library name is for the current version of the product
you are using (40, 41, 45, 60, or 61). For Microsoft Basic Compiler
for MS-DOS versions 6.0 and 6.0b, use BRUNxxER.Lib (emulation math
package) or BRUNxxAR.Lib (alternate math package). For the alternate
math library, you must compile with the BC /FPa switch. If you compile
with BC /O, link with BCOMxx.LIB instead of BRUNxx.LIB.
To run this program in the QB.EXE environment, you must load the Quick library QB.QLB: QB /L QB.QLB. For Basic PDS for MS-DOS, version 7.0 or 7.1, compile and link as follows:
The above example is for the math emulation, near strings, and real
mode run-time library. The other possible run-time libraries and their
corresponding compiler switches are as follows:
To use stand-alone libraries, use BCL70xxx.Lib instead of
BRT70xxx.Lib and add the compiler switch BC /O.
For the QBX.EXE version 7.0 or 7.1 environment, use QBX.QLB: QBX /L QBX.QLB. Note: This interrupt can be used to accomplish the same effect in SCREEN 0. Usually this in not needed because the COLOR statement can be used to control the intensity and blinking. However, if a program is directly accessing the hardware (through the POKE statement, for example), this interrupt might be needed. This will have no effect for video cards that are NOT in a color mode (for example, MODE CO80). For example, if a program is running on a dual-monitor system (Hercules and VGA) and the current mode is monochrome, this interrupt will not affect the color card. Additional query words: VBmsdos QuickBas BasicCom 1.00 4.00 4.00b 4.50 6.00 6.00b 7.00 7.10
Keywords : |
Last Reviewed: December 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |