-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is a way to disable the escape_key in interact? #131
Comments
Just set escape_character to something else when calling interact. for example, for ^c:
If using python2, you can set it to 'None'. But I think this would be an error for python3, might be a bug https://github.com/pexpect/pexpect/blob/master/pexpect/__init__.py#L1645 |
WOW! I tried to set the escape_character as None, and not as 'None'. Now it's working! Thanks! I'm using Python 2.7 here, and this works great. Thanks again! |
Correction for anybody else: the raw Setting any valid multi-character is fine, like |
For those who wish to disable the ability to escape using escape_character until normal process termination, they may now set the value of escape_character to None. Some of the related docstring on escape_character was made more brief and clear about its related value behavior. This closes #131 #132 #167
Hi people,
I didn't find a way to disable the escape key in inteact. My workaround was to do a while True and always call interact. There is a better way to solve this?
Thanks.
The text was updated successfully, but these errors were encountered: