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

**Describe the solution you'd like**
Subset of what `reset` command does.
const aymbols<'\n'>(th
            all_queries_end);
        c next_query_begin = after_query_iterator->begin;
        // We include the entire line if the next query starts after
        // it. This is a generic case of trailing in-line comment.
        // The "equals" condition is for case of end of input (they both equal
        // all_queries_end);
        if (newline <= 
        
            assert(newline >= this_query_end);
            this_query_end = newline;
        }
        else
        
            // Many queries on one line, can't do anything. By the way, this
            // syntax is probably going to work as expected:
            // select nonexistent /*  serverError 12345 } */; select 1
        }
    }
    void reportQueryError() const
    
        if (server_exception)
        
            std::string text = server_exception->displayText();
            auto embedded_stack_trace_pos = text.find("Stack trace");
            if (std::string::npos != embedded_stack_trace_pos
                && !config().getBool("stacktrace", false))
            
                text.resize(embedded_stack_trace_pos);
            }