Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>disp_set43</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
disp_set43

Usage

   #include <disp.h>

   void disp_set43(void);

Description

   This function sets the display mode to 80 by 43 EGA text mode (80 by 50
   on a VGA). This function should not be used while Display package is
   open. An EGA or VGA display adaptor and compatible display are needed for
   this to work. The actual resulting number of lines is stored in
   disp_numrows.

Example 

   #include <stdio.h>
   #include <conio.h>
   #include <disp.h>
   #include <stdlib.h>

   int main()
   {
       disp_set43();

       disp_open();
       disp_printf("The display should be in 43 line mode\n");
       disp_printf("Press a key when ready\n");
       disp_flush();
       getch();
       disp_close();
       disp_reset43();
       printf("Back to the original screen mode\n");
       return EXIT_SUCCESS;
   }

See Also

   Display package, disp_reset43, disp_setmode, disp_getmode



See Also: disp_reset43 disp_setmode disp_getmode

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson