Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>movetext() copies text from one on screen rectangle to another</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 movetext()              Copies Text From One on Screen Rectangle to Another

 #include <conio.h>

 int        movetext(left,top,right,bottom,newleft,newtop);
 int        left;
 int        top;
 int        right;
 int        bottom;
 int        newleft;
 int        newtop;

    movetext() copies a block of text from one rectangular area on the
    screen to another. The text is copied from the area bordered by
    ('left','top'), ('right','bottom') to an area of the same dimensions
    whose upper left coordinate is ('newleft', 'newtop').

       Returns:     1, if successful; 0 on failure.

   Portability:     IBM PC and BIOS compatibles only.

   -------------------------------- Example ---------------------------------
    The folowing statements print a block of text then copy it to a
    different location.

           #include <conio.h>

           main()
           {
               int x, y;

               gotoxy(1,1);
               for (y = 0; y < 9; y++) {
                   for (x = 0; x < 19; x++)
                       printf("%c",65+y);
                   printf("\n");
               }
               getch();
               movetext(1,1,20,10,30,15);
           }


See Also: gettext()

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