Redirects stdout and stderr to a text widget