ID Number: Q35290
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,
Underlined, and No 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( 17 ); /* foreground color Blue + 16 */
_setbkcolor( 0L ); /* background color Black */
_outtext( "Blinking Normal Underlined Text, on MDA.\n" );
_settextcolor( oldcolor );
_setbkcolor( oldbkcolor );
}
Additional reference words: 5.00 5.10 6.00 6.00a 6.00ax 7.00