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_flush</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
disp_flush

Usage

   #include <disp.h>
   void disp_flush(void);

Description

   Flushes output, moves the hardware cursor so that it coincides with the
   Display package output position. This is necessary when the screen must
   be up-to-date, such as when input is requested from the user.

Example 

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

   #include <stdlib.h>

   int main()
   {
       char name[21];

       disp_open();
       disp_move(0,0);
       disp_eeop();
       disp_printf("Enter your name ");
       disp_printf("(maximum 20 characters)");
       disp_flush();
       gets(name);
       disp_printf("\nThank you, %s.\n",name);
       disp_close();
       return EXIT_SUCCESS;
   }

See Also


   Display package



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