Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

Latest commit

 

History

History

Q35292

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
layout title permalink
page
Q35292: MDA Blinking Normal Inverse Text Example
/pubs/pc/reference/microsoft/kb/Q35292/

Q35292: MDA Blinking Normal Inverse Text Example

Article: Q35292
Version(s): 5.00 5.10
Operating System: MS-DOS
Flags: ENDUSER |
Last Modified: 12-OCT-1988

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.

The following program shows how to get Normal Text, Blinking, No
Underlining, and Inverse, on a monochrome display adapter:

#include<graph.h>
int     oldcolor;
long    oldbkcolor;

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 Mono\n");
 _settextcolor(oldcolor);
 _setbkcolor(oldbkcolor);
}