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

**Describe the solution you'd like**
Subset of what `reset` command does.
}
                else
                
                    throw;
                }
            }
        }
    }
    /// Process the query that requires transferring data blocks to the server.
    void processInsertQuery()
    
        const auto parsed_insert_query = parsed_query->as<ASTInsertQuery &>();
        if (!parsed_insert_query.data && (is_interactive || (!stdin_is_a_tty && std_in.eof())))
            throw Exception("No data to insert", ErrorCodes::NO_DATA_TO_INSERT);
        n->sendQuery(
            n_parameters.timeouts,
            query_to_send,
            context.getCurrentQueryId(),
            query_processing_stage,
            &context.getSettingsRef(),
            &context.getClientInfo(),
            true);
        sendExternalTables();
        /// Receive description of table structure.
        Block sample;
        ColumnsDescription columns_description;
        if (receiveSampleBlock(sample, columns_description))
        
            /// If structure was received (thus, server has not thrown an exception),
            /// send our data with that structure.