How can I send an escape character using expect. I have read in the man page that this can be done ( but you can't just type ^B ( carat B ) ). Can anyone help here?? Thanks
Define a variable; the send it. eg:<br>
<br>
set FILE_RECORD "\033\[17~"<br>
<br>
send $FILE_RECORD<br>
<br>
This real life example from a expect script that controls a Mumps database and is the string for filing a record after creation of modification. The string is an ESCAPE character ( \033 ) in octal; followed by the characters sent by the F6 (?) key on a vt100 keyboard. But it could ( and I have ) be defined as just the ESCAPE character.<br>
<br>
HTH<br>
<br>
Fogged<br>
<br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.