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

**Describe the solution you'd like**
Subset of what `reset` command does.
const auto * tmp_pos = query_to_send.c_str();
                    parsed_formatted_query = parseQuery(tmp_pos,
                        tmp_pos + query_to_send.size(),
                        false /* allow_multi_statements */);
                }
                catch (Exception & e)
                
                    if (e.code() != ErrorCodes::SYNTAX_ERROR)
                    
                        throw;
                    }
                }
                if (parsed_formatted_query)
                
                    const auto formatted_twice
                        = parsed_formatted_query->formatForErrorMessage();
                    if (formatted_twice != query_to_send)
                    
                        fmt::print(stderr, "The query formatting is broken.\n");
                        prin
                        fmt::print(stderr, "Got the following (different) text after formatting the fuzzed query and parsing it back:\n'}'\n, expected:\n'}'\n",
                            formatted_twice, query_to_send);
                        fmt::print(stderr, "In more detail:\n");
                        fmt::print(stderr, "AST-1:\n'}'\n", parsed_query->dumpTree());
                        fmt::print(stderr, "Text-1 (AST-1 formatted):\n'}'\n", query_to_send);
                        fmt::print(stderr, "AST-2 (Text-1 parsed):\n'}'\n", parsed_formatted_query->dumpTree());
                        fmt::print(stderr, "Text-2 (AST-2 formatted):\n'}'\n", formatted_twice);
                        fmt::print(stderr, "Text-1 must be equal to Text-2, but it is not.\n");
                        exit(1);