[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Why I can't use escape character in a string ?
- From: Laurent FAILLIE <l_faillie@...>
- Date: Fri, 10 Feb 2017 16:46:38 +0000 (UTC)
\27 is working, thanks :)
(I thought it was octal code ... but it wasn't).
Anyway, hexa notation not working for me.
Le Vendredi 10 février 2017 17h37, Oliver Kroth <email@example.com> a écrit :
Am 10.02.2017 um 17:19 schrieb Laurent
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
but none worked :(
I finally found
which is working but I don't get why I can't
escape ... ESC ?
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".