how do i redirect the commands printed to the console to a text area or something when connecting to a ftp server?