Am 10.02.2017 um 17:19 schrieb Laurent
 FAILLIE:
 
 
 
 Hello,
 
 
 Can someone explain to me why I can't use escape character
 in a string ?
 
 
 I'm trying to send control code to the terminal but ESC is
 never transmited.
 
 
 I tried
 
 
   f:write('033円[?17;0;0c')
 
 
 and
 
   
 f:write('\x1b[?17;0;0c')
 
 
 but none worked :(
 
 
 I finally found 
 
   f:write(string.char(0x1b)
 .. '[?17;0;0c')
 which is working but I don't get why I can't
 escape ... ESC ?
 
 
 Thanks
 
 
 Laurent
 
  
 
 The first escape will encode an exclamation mark, ASCII code 33. 
 The second should work; although the code is to reset the terminal's
 state and normally not used with parameters.
 You may have looked for "27円[17;0;0m".
 
 -- 
 Oliver