View Single Post
  #14  
Old 10-02-2009, 02:24 PM
Rar Rar is offline
Novice
 
Join Date: Jun 2008
Posts: 14
Default

Quote:
Originally Posted by Ahriman View Post
I understand the majority of what you're saying, Rar. I know there's just one key piece that I'm missing... and that is this: which character(s), exactly, represent ASCII #27? Would you type ESC? Or would you type its hex value, 1B? Is it universal? Thanks for taking the time to explain this stuff.
Its printable ASCII representation is a little arrow pointing left. I don't think you can actually "type" it on your client, however. In Perl/etc., you would just assign a variable to chr(27) (or your language's equivalent).

$ESC = chr(27);
$text =~ s/$ESC/%%/g; // replaces #27 with %%
Reply With Quote