ID Number: Q35286
5.00 5.10 6.00 6.00a 6.00ax
MS-DOS
Summary:
On a monochrome display adapter, there is no way to display colors.
However, you can display Normal Text, Bright Text, Reverse Video,
Underline, and Blinking.
More Information:
The following program shows how to get Bright Text, No Blinking,
Underlined, and No Inverse on a monochrome display adapter:
Sample Code
-----------
// Compile options needed: none
#include<graph.h>
int oldcolor;
long oldbkcolor;
main()
{
_clearscreen(_GCLEARSCREEN);
oldcolor=_gettextcolor();
oldbkcolor=_getbkcolor();
_settextposition(12,0);
_settextcolor(9); /* foreground color Intense Blue */
_setbkcolor(0L); /* background color Black */
_outtext("Bright Underlined Text, on Mono\n");
_settextcolor(oldcolor);
_setbkcolor(oldbkcolor);
}
Additional reference words: 5.00 5.10 6.00 6.00a 6.00ax