class TerminalProperties {

    public static String constructDefaultOsPromptPattern(final String host, final String environment,
            final String username) {
        return new StringBuilder().append(username).append(":")
                .append(environment != null && !environment.isEmpty() ? environment : "\\w*").append("@").append(host)
                .append(":").append("[^\\r\\n]*(\\r|\\n)+#\\s*").toString();

    }

    private  TerminalProperties();
    private  TerminalProperties(final TerminalPropertiesBuilder builder);

}