Borland C++ reference

movetext

raw OCR

Copies text onscreen from one rectangle to another.

Defined in header <conio.h>

Syntax

#include <conio.h>
int movetextCint    left, int top, int right, int bottom, int destleft, int desttop);

Portability

DOSUNIXWindowsANSI CC++ only
■

Remarks

movetext copies the contents of the onscreen rectangle defined by left, top, right, and bottom to a new rectangle of the same dimensions. The new rectangle's upper left corner is position {destleft, desttop).

All coordinates are absolute screen coordinates. Rectangles that overlap are moved correctly.

movetext is a text mode function performing direct video output.

Return value

movetext returns nonzero if the operation succeeded. If the operation failed (for example, if you gave coordinates outside the range of the current screen mode), movetext returns 0.

See also

Example

#include <conio.h>
#include <string.h>
int main(void)
{
   char *str = "This is a test string";
   clrscrO;
   cputs(str);
   getchO ;
   movetext(l, 1, strlen(str), 2, 10, 10);
   getchO ;
   return 0;

Differences from modern implementations

Nothing recorded yet.

Modern references

These are search links, not yet checked by hand.