/************************************************************************/ /* 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"); }