Use hexadecimal number to represent ASCII ESC
authorWuzzy <Wuzzy2@mail.ru>
Fri, 02 Nov 2018 13:17:35 +0100
changeset 14077 e54f9a85ccba
parent 14076 bc25c5ff2ca2
child 14078 ff6e67066fd0
Use hexadecimal number to represent ASCII ESC
hedgewars/uUtils.pas
--- a/hedgewars/uUtils.pas	Fri Nov 02 12:58:53 2018 +0100
+++ b/hedgewars/uUtils.pas	Fri Nov 02 13:17:35 2018 +0100
@@ -264,7 +264,7 @@
     i:= Pos(e, a);
     if (i > 1) and (a[i - 1] = '\') then
         begin
-        a[i]:= ^[; // ASCII ESC
+        a[i]:= $1B; // ASCII ESC
         Delete(a, i - 1, 1);
         end
     else
@@ -278,7 +278,7 @@
 var i: LongInt;
 begin
 repeat
-    i:= Pos(^[, a); // ASCII ESC
+    i:= Pos($1B, a); // ASCII ESC
     if (i > 0) then
         begin
         a[i]:= e;