mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-05-01 21:13:41 +02:00
12 lines
240 B
ObjectPascal
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.
|