fpc/docs/crtex/ex2.pp
1998-03-25 11:26:49 +00:00

12 lines
240 B
ObjectPascal

Program Example2;
uses Crt;
{ Program to demonstrate the KeyPressed function. }
begin
WriteLn('Waiting until a key is pressed');
repeat
until KeyPressed;
{The key is not Read, so it should also be outputted at the commandline}
end.