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


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, privacy policy and cookie policy

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