Browse Source

*** empty log message ***

florian 25 years ago
parent
commit
99ee514c0b
1 changed files with 21 additions and 0 deletions
  1. 21 0
      tests/webtbs/tw1228.pp

+ 21 - 0
tests/webtbs/tw1228.pp

@@ -0,0 +1,21 @@
+{ %INTERACTIVE }
+
+{ Source provided for Free Pascal Bug Report 1228 }
+{ Submitted by "Rich Pasco" on  2000-11-10 }
+{ e-mail: [email protected] }
+uses  
+  CRT;
+var
+  k: char;
+begin
+  WriteLn('Type a few words.  Hit Enter to quit:');
+  repeat
+    delay(400);  
+    k := ReadKey;
+    if k=#0 then Readkey (* discard second half of function keys *)
+    else write(K) (* but echo ASCII to screen *)
+  until k=#$0D;   (* terminate with ENTER key *)
+end.
+
+
+