Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for getTerminalCharset (0.09 seconds)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/ConsoleIcon.java

         * @param terminal the terminal to get the icon for
         * @return the Unicode character if supported, otherwise the ASCII fallback
         */
        public String getIcon(Terminal terminal) {
            Charset charset = getTerminalCharset(terminal);
            return charset.newEncoder().canEncode(unicodeChar) ? String.valueOf(unicodeChar) : asciiFallback;
        }
    
        /**
         * Gets the charset used by the terminal for output.
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Jul 15 09:35:08 GMT 2025
    - 3.1K bytes
    - Click Count (0)
Back to Top