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

**Describe the solution you'd like**
Subset of what `reset` command does.
// that follow the query itself, e.g. "insert into V 1;2".
            // They need special handling. First of all, here we find where the
            // inserted data ends. In multy-query mode, it is delimited by a
            // newline.
            // The VALUES format  more handling -- we also allow the
            // data to be delimited by semicolon. This case is handled later by
            // the format parser itself.
            // s with inline data, because most
            // row input formats (e.g. TSV) can't tell when the input stops,
            // unlike VALUES.
            auto * insert_y->as<ASTInsertQuery>();
            if (insert_ast && inata)
            
                this_que_symbols<'\n'>(inata,
                    all_queries_end);
                insert_ast->end = this_query_end;
                query_to_send = all_queries_text.substr(
                    this_query_begin - all_queries_text.data(),
                    inata - this_query_begin);
            }
            else
            
                query_to_send = all_queries_text.substr(
                    this_query_begin - all_queries_text.data(),
                    this_query_end - this_query_begin);
            }
            // Try to include the trailing comment with test hints. It is just
            // a guess for now, because we don't yet know where the query ends
            // if it is an INSERT query with inline data. We will do it again
            // after we have processed the query. But even this guess is