mysticbbs/mdl/mdltest0.pas

18 lines
258 B
ObjectPascal
Raw Normal View History

2012-02-13 15:48:58 -08:00
program test0;
uses
crt;
var ch : char;
begin
repeat
ch := readkey;
if ch = #0 then
writeln('Extended: ', ord(ch))
else
writeln('Got: ' + ch + ' ', ord(ch));
until ch = #27;
end.