In the answer to this question, one explains how to use a function


to print output to the console. My question: can you make a global definition that will automatically print all output to the message box, without having to wrap PrintToConsole around a specific line of code?

Thank you


1 Answer 1


You can use

$PrePrint = PrintToConsole

which will have this effect. You can read more about this and other alternatives here.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.