lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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