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