I'm looking for a way to clear STDOUT. I don't want to use 'flush' as I believe that goes ahead and sends what was already written to the filehandle. I need to clear it out completely, to prepare for new output (used for an error handling routine).
Any suggestions would be appreciated.
Any suggestions would be appreciated.