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

**Describe the solution you'd like**
Subset of what `reset` command does.
ll_queries_text);
            if (test_hint.clientError() || test_hint.serverError())
                processTextAsSingleQuery("SET send_logs_level = 'fatal'");
            // Echo all queries if asked; makes for a more readable reference
            // file.
            if (test_hint.echoQueri
                echo_queries = true;
        }
        /// Several queries separated by ';'.
         of line, not ';'.
        /// An exception is VALUES format where we also support semicolon in
        /// addition to end of line.
        const l_queries_text.data();
        c all_queries_end = all_queries_text.data() + all_queries_text.size();
        while (this_query_ueries_end)
        
            // Remove leading empty newlines and other whitespace, because they
            // are annoying to filter in query log. This is mostly relevant for
            // the tests.
            while (this_query_ueries_end
                 && isWhitespaceASCII(*this_query_begin))
            
                ++this_query_begin;
            }
            if (this_query_begin >= all_queries_end)
            
                break;
            }
            // If there are only comments left until the end of file, we just
            // stop. The parser can't handle this situation because it always