Explorar el Código

* new interactive test for Ctrl-C

pierre hace 23 años
padre
commit
b7eaf118e8
Se han modificado 1 ficheros con 16 adiciones y 0 borrados
  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.