ID Number: Q35292
5.00 5.10 6.00 6.00a 6.00ax 7.00 | 5.10 6.00 6.00a
MS-DOS | OS/2
Summary:
With Microsoft C versions 5.0, 5.1, 6.0, 6.0a, 6.0ax, and C/C++
version 7.0 on a monochrome display adapter, there is no way to
display colors. However, you can display Normal Text, Bright Text,
Inverse Video, Underline, and Blinking.
More Information:
The following program shows how to display Normal Text, Blinking, No
Underlining, and Inverse, on a monochrome display adapter:
Sample Code:
------------
/* Compile options needed: none
*/
#include <graph.h>
int oldcolor;
long oldbkcolor;
void main( )
{
_clearscreen( _GCLEARSCREEN );
oldcolor = _gettextcolor( );
oldbkcolor = _getbkcolor( );
_settextposition( 12, 0 );
_settextcolor( 16 ); /* foreground color Black + 16 */
_setbkcolor( 7L ); /* background color White */
_outtext( "Blinking Normal Inverse Text, on MDA.\n" );
_settextcolor( oldcolor );
_setbkcolor( oldbkcolor );
}
Additional reference words: 5.00 5.10 6.00 6.00a 6.00ax 7.00