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

**Describe the solution you'd like**
Subset of what `reset` command does.
std::map<String, String> prompt_substitutions
        
            "host", n_parameters.host},
            "port", toString(n_parameters.port)},
            "user", n_parameters.user},
            "display_name", server_display_name},
        };
        /// Quite suboptimal.
        for (cue]: prompt_substitutions)
            boost::replace_all(prompt_by_server_display_name, "" + key + "}", value);
        if (is_interactive)
        
            if (config().has("query_id"))
                throw Exception("query_id could be specified only in non-interactive mode", ErrorCodes::BAD_ARGUMENTS);
            if (print_time_to_stderr)
                throw Exception("time option could be specified only in non-interactive mode", ErrorCodes::BAD_ARGUMENTS);
            suggest.emplace();
            if (server_revision >= Suggest::MIN_SERVER_REVISION && !config().getBool("disable_suggestion", false))
            
                /// Load suggestion data from the server.
                suggest->load(n_parameters, config().getInt("suggestion_limit"));
            }
            /// Load command history if present.
            ry_file"))
                history_file = config().getString("history_file");
            else
            
                auto * history_file_from_env = getenv("CLICKHOUSE_HISTORY_FILE");
                if (history_file_from_env)
                    history_file = history_file_from_env;