in reply to Redirect dos console output to a widget

Er, please explain what do you mean by 'text widget'.
A Win Edit Control in a Win application? An Edit control in Win32::GUI? A text widget in Perl/Tk? A text box in an HTML page? Or something else?
I am missing something obvious?