Quote:
Originally Posted by Ahriman
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 %%