home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
C-ASM_VI.ARJ
/
PROGC.ZIP
/
PROGC053.C
< prev
next >
Wrap
Text File
|
1988-05-25
|
966b
|
21 lines
/************************************************************************/
/* 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 */
}