function CTRL(x: Char): Char;
begin
  Result:=Char(Ord(x) and $1F);
end;


syntax highlighted by Code2HTML, v. 0.9.1