Thanks, Steve, but it just does not work for my problem. In my first post I wrote that this simple redirection does not work with regular console output, only with print(). Try it yourself: ~~~ rdstdout, wrstdout = redirect_stdout() 1+2 s = readavailable(rdstdout) clipboard(s) ~~~ - the clipboard does not change.
Even if it did, the problem remains with error messages. Try to replace "1+2" with "1)" in the above code and see how you can get the resulting error message to the clipboard.
