feature_readkey can be used to determine if the current platform supports calling the built-in function readkey.
if not supported(feature_readkey) then
begin
writeln('readkey not supported on the current platform');
abort
end;
Operating Systems: All
Standard Pascal: No