**Use case**
Some program left garbage in terminal.

**Describe the solution you'd like**
Subset of what `reset` command does.
/// block_out_stream, do not output it.
        a if we're fuzzing.
        if (block.rows() != 0
            && (query_fuzzer_runs == 0 || processed_rows < 100))
        
            block_out_stream->write(block);
            written_first_block = true;
        }
        bool clear_progress = false;
        if (need_render_progress)
            clear_progress = std_out.offset() > 0;
        if (clear_progress)
            clearProgress();
        /// Received data block is immediately displayed to the user.
        block_out_stream->flush();
        /// Restore progress bar after data block.
        if (clear_progress)
            writeProgress();
    }
    void onLogData(Block & block)
    
        initLogsOutputStream();
        clearProgress();
        logs_out_stream->write(block);
        logs_out_stream->flush();
    }
    void onTotals(Block & block)
    
        initBlockOutputStream(block);
        block_out_stream->setTotals(block);