home *** CD-ROM | disk | FTP | other *** search
-
- /************************************************************************/
- /* Check display type and if ok, set 43 line mode */
- /************************************************************************/
-
- demo_43_lines()
- {
- int i, mode;
- if (get_scanlines() < 350)
- printf("Cannot use 43 lines with your display");
- else
- {
- mode = get_mode(); /* Get current mode */
- set_43_lines(); /* Set 43 text mode */
- for (i = 0; i < 43; i++) /* Fill screen with text*/
- printf("\nThis is line %d in 43 line text mode",i);
- getchar(); /* Wait for <Enter> key */
- set_mode(mode); /* Restore all by */
- } /* setting mode */
- }