-
Notifications
You must be signed in to change notification settings - Fork 33
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
Provide a Callback for terminal.execute Function #107
Comments
Done by 19dea61. |
Fantastic, thanks! |
Please let me know if it works as expected! :) |
It works well as long as there is not an Error in the code that is being executed. However when there is an error, it overrides the echo=false, and prints to terminal then reprompts the user which triggers the OnOutput function which runs the execute and then causes the error to happen again causing an infinite loop. Is there a reason that errors need to be echoed all the time and if so is it possible to have an option to turn that off? Thanks, |
Oh yes, I need to fix this. Expect this fix to come tomorrow! Until then, I
hope the error you are getting is not a big problem.
Have a good weekend!
Nikita
…On Fri, Jul 7, 2017 at 6:45 PM wcjphoenix ***@***.***> wrote:
It works well as long as there is not an Error in the code that is being
executed. However when there is an error, it overrides the echo=false, and
prints to terminal then reprompts the user which triggers the OnOutput
function which runs the execute and then causes the error to happen again
causing an infinite loop. Is there a reason that errors need to be echoed
all the time and if so is it possible to have an option to turn that off?
Thanks,
Walter Jaskowiak
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<https://github.com/intersystems-ru/webterminal/issues/107#issuecomment-313718674>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEwhSLvOR6K_J-eKYAvMtVxN1K3ZoUTZks5sLlKWgaJpZM4OQCwm>
.
|
Not at all, I just threw a try catch block around it. Have a nice weekend! |
I've fixed the error by c914b9f (v4.6.1). Now the error message should go to the |
This issue is a result of the discussion with @wcjphoenix #106.
It would be nice to have an optional callback in
terminal.execute
API function,execute(command, options, callback)
. The callback will receive the output after command execution is done. Example:The text was updated successfully, but these errors were encountered: