Browse Source

* new interactive test for Ctrl-C

pierre 23 years ago
parent
commit
b7eaf118e8
1 changed files with 16 additions and 0 deletions
  1. 16 0
      tests/test/units/crt/tctrlc.pp

+ 16 - 0
tests/test/units/crt/tctrlc.pp

@@ -0,0 +1,16 @@
+{ %INTERACTIVE }
+
+program test_crt;
+
+uses
+  crt;
+
+  var
+    ch : char;
+
+begin
+  Write('Press Ctrl-C to test :');
+  Read(ch);
+  if ch=#3 then
+    Writeln('It works correctly');
+end.