tctrlc.pp 181 B

12345678910111213141516
  1. { %INTERACTIVE }
  2. program test_crt;
  3. uses
  4. crt;
  5. var
  6. ch : char;
  7. begin
  8. Write('Press Ctrl-C to test :');
  9. Read(ch);
  10. if ch=#3 then
  11. Writeln('It works correctly');
  12. end.