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

**Describe the solution you'd like**
Subset of what `reset` command does.
else if (!is_interactive)
        
            /// Send data read from stdin.
            try
            
                sendDataFrom(std_in, sample, columns_description);
            }
            catch (Exception & e)
            
                e.addMessage("data for INSERT was parsed from stdin");
                throw;
            }
        }
        else
            throw Exception("No data to insert", ErrorCodes::NO_DATA_TO_INSERT);
    }
    void sendDataFrom(ReadBuffer & buf, Block & sample, const ColumnsDescription & columns_description)
    
        String current_format = insert_format;
        /// Data format can be specified in the INSERT query.
        if (const auto * insert = parsed_query->as<ASTInsertQuery>())
        
            if (!insert->format.empty())
                current_format = insert->format;
        }
        BlockInputStreamPtr block_input = context.getInputFormat(
            current_format, buf, sample, insert_format_max_block_size);
        if (columns_description.hasDefaults())
            block_input = std::make_shared<AddingDefaultsBlockInputStream>(block_input, columns_description, context);
        BlockInputStreamPtr async_block_input = std::make_shared<AsynchronousBlockInputStream>(block_input);