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

**Describe the solution you'd like**
Subset of what `reset` command does.
// Shouldn't be set without an exception, but check it just in
                // case so that at least we don't lose an error.
                return -1;
            }
            return 0;
        }
    }
    void connect()
    
        n_parameters = ConnectionParameters(config());
        if (is_interactive)
            std::cout << "Connecting to "
                << (!n_parameters.default_database.empty() ? "database " + n_parameters.default_database + " at " : "")
                << n_parameters.host << ":" << n_parameters.port
                << (!n_parameters.user.empty() ? " as user " + n_parameters.user : "")
                << "." << st;
        n = std::make_unique<Connection>(
            n_parameters.host,
            n_parameters.port,
            n_parameters.default_database,
            n_parameters.user,
            n_parameters.password,
            "", /* cluster */
            "", /* cluster_sec
            "client",
            n_parameters.compression,
            n_parameters.security);
        String server_name;
        UInt64 server_version_major = 0;
        UInt64 server_version_minor = 0;