Sign in Join
FPDoc Onlineexperiment

ClrScr procedure

In unit Crt

Clear current window.

Declaration

pascal
procedure ClrScr

Description

ClrScr clears the current window (using the current colors), and sets the cursor in the top left corner of the current window.

Errors

None.

See also

Example: ex8

pascal
Program Example8;
uses Crt;

{ Program to demonstrate the ClrScr function. }

begin
  Writeln('Press any key to clear the screen');
  ReadKey;
  ClrScr;
  Writeln('Have fun with the cleared screen');
end.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.