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

**Describe the solution you'd like**
Subset of what `reset` command does.
if (server_logs_file.empty())
                
                    /// Use stderr by default
                    e_unique<WriteBufferFromFileDescriptor>(STDERR_FILENO);
                    wb = out_logs_buf.get();
                }
                else if (server_logs_file == "-")
                
                    /// Use stdout if --server_logs_file=- specified
                    wb = &std_out;
                }
                else
                
                    e_unique<WriteBufferFromFile>(
                        server_logs_file, DBMS_DEFAULT_BUFFER_SIZE, O_WRONLY | O_APPEND | O_CREAT);
                    wb = out_logs_buf.get();
                }
            }
            logs_out_stream = std::make_shared<InternalTextLogsRowOutputStream>(*wb, stdout_is_a_tty);
            logs_out_stream->writePrefix();
        }
    }
    void onData(Block & block)
    
        if (!block)
            return;
        processed_rows += block.rows();
        initBlockOutputStream(block);
        /// The header block containing zero rows was used to initialize