Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getTerminalCharset (0.08 sec)

  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.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Jul 15 09:35:08 UTC 2025
    - 3.1K bytes
    - Viewed (0)
Back to top