home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
C-ASM_VI.ARJ
/
PROGC.ZIP
/
PROGC027.C
< prev
next >
Wrap
Text File
|
1988-05-15
|
936b
|
22 lines
/************************************************************************/
/* Fetch type of display attached to EGA and print it */
/************************************************************************/
print_display_type()
{
static char *types[] =
{"Unknown", "Unknown", "Unknown", "Enhanced",
"Color", "Monochrome", "Unknown", "Monochrome",
"Color"};
int index;
index = get_display_type(); /* Get display type */
/* Print the type */
if (index < 7)
printf("\n%s Display attached to EGA", types[index]);
else if (index < 9)
printf("\n%s Display attached to VGA", types[index]);
else
printf("\EGA/VGA are not installed");
}