Redirect cout and cerr to text window
missing prototype