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

**Describe the solution you'd like**
Subset of what `reset` command does.
auto input = lr.readLine(prompt(), ":-] ");
                if (input.empty())
                    break;
                has_vertical_output_suffix = false;
                if (input.ends_with("\\G"))
                
                    input.resize(input.size() - 2);
                    has_vertical_output_suffix = true;
                }
                try
                
                    if (!processQueryText(input))
                        break;
                }
                catch (const Exception & e)
                
                    // We don't need to handle the test hints in the interactive
                    // mode.
                    std::ce
                        << "Exception on client:" << st
                        << "Code: " << e.code() << ". " << e.displayText() << st;
                    if (config().getBool("stacktrace", false))
                        std::cerr << "Stack trace:" << st << e.getStackTraceString() << st;
                    std::ce;
                    client_exception = std::make_unique<Exception>(e);
                }
                if (client_exception)
                
                    /// client_exception may have been set above or elsewhere.
                    /// Client-side exception during query execution can result in the loss of