Borland C++ reference

clrscr

raw OCR

Clears the text-mode window.

Defined in header <conio.h>

Syntax

#include <conio.h>
void clrscr(void);

Portability

DOSUNIXWindowsANSI CC++ only
■

Remarks

cirscr clears the current text window and places the cursor in the upper left-hand corner (at position 1,1).

Return value

None.

See also

Example

#include <conio.h>

int main(void)

   mt  i;
   cirscr0 ;
   for (i = 0; i < 20; i++)
      cprintf ("%d\r\n", i);
   cprintf("\r\nPress any key  to clear screen");
   getchO ;
   clrscrO ;
   cprintf("The screen has been  cleared!");
   getchO ;
   return 0;

Differences from modern implementations

Nothing recorded yet.

Modern references

These are search links, not yet checked by hand.

Extraction notes

  • heading `cirscr` read as `clrscr`