Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sending an escape sequence with expect?

1,698 views
Skip to first unread message

...

unread,
Sep 16, 2010, 2:14:50 PM9/16/10
to
I'm trying to interface an expect script with an switch, and to get
out of the terminal I have to use esc+(. How can I send this in an
expect script?

Uwe Klein

unread,
Sep 16, 2010, 2:41:02 PM9/16/10
to

oct dez hex char
033 27 1B ESC

so
send "\033("
send "\x1b("


uwe

Donald Arseneau

unread,
Sep 16, 2010, 5:58:49 PM9/16/10
to
Uwe Klein <uwe_klein_...@t-online.de> writes:

> > out of the terminal I have to use esc+(

> oct dez hex char
> 033 27 1B ESC
>
> send "\033("
> send "\x1b("

also send [format "%c(" 27]


--
Donald Arseneau as...@triumf.ca

Uwe Klein

unread,
Sep 17, 2010, 3:31:14 AM9/17/10
to
Donald Arseneau wrote:
> Uwe Klein <uwe_klein_...@t-online.de> writes:
>
>
>>>out of the terminal I have to use esc+(
>
>
>>oct dez hex char
>>033 27 1B ESC
>>
>>send "\033("
>>send "\x1b("
>
>
> also send [format "%c(" 27]
>
>
send [binary format ca 27 ( ]

uwe ;-)

Message has been deleted
0 new messages