瀏覽代碼

* new interactive test for Ctrl-C

pierre 23 年之前
父節點
當前提交
b7eaf118e8
共有 1 個文件被更改,包括 16 次插入0 次删除
  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.