PDA

View Full Version : Clearing screen in pascal


iamien
02-13-03, 17:15
LEarning pascal but cant figure out how to clr the screen and have to set cursor to top left

i know turbo pascal suports this but not doing turbo doing pascal.
My only other alternative is to set up a repeat loop like so
procedure clrscr;
var
rpt : integer;

begin
repeat
writeln(' ');
rpt := rpt + 1;
until rpt = 50
end;
So how can i clear the screen in pascal? without just spaming bunch of empty lines

lesrae
02-13-03, 17:26
When I did pascal at college (15 years ago - eek) I'm sure the command was ClrScr - or something like it. Problem is I can't remember what flavour of pascal it was.

Double checked it and a few sites say the same - http://www.geocities.com/SiliconValley/Park/3230/pas/pasl1000.html

iamien
02-13-03, 18:38
that comand is used in turbo pascal and usese ctr.dcu
Sometihn pascal doesnt seem to have