;; $replace_special_char(text)
;; returns your normal text if control codes are in it with the text of the control codes instead of them
alias replace_special_char {
var %txt = $1-,%y = 31
while (%y) {
var %tok = $gettok(NUL¢Start of Header¢Start of Text¢End of Text¢End of Transmission¢Enquiry¢Acknowledge¢Bell¢Backspace¢Horizontal Tab¢Line Feed¢Vertical Tab¢Form Feed¢Carriage Return¢Shift Out¢Shift In¢Delete¢-free-¢-free-¢-free-¢-free-¢Negative Acknowledge¢Sychronous Idle¢End of Transmission¢Cancel¢End of Medium¢Substidude¢Escape¢File Seperator¢Group Seperator¢Record Seperator¢Unit Seperator¢Space,$calc(%y +1),162)
%txt = $replace(%txt,$chr(%y),$+($chr(123),$lower(%tok),$chr(125)))
dec %y
}
return %txt
}