Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 160 for Terminal (0.05 seconds)

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

        /**
         * Gets the charset used by the terminal for output.
         * Falls back to the system default charset if terminal charset is not available.
         *
         * @param terminal the terminal to get the charset from
         * @return the terminal's output charset or the system default charset
         */
        private static Charset getTerminalCharset(Terminal terminal) {
            if (terminal != null && terminal.encoding() != null) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Jul 15 09:35:08 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/ConsoleIconTest.java

     * Tests icon rendering with different terminal charsets and fallback behavior.
     */
    @DisplayName("ConsoleIcon")
    class ConsoleIconTest {
    
        @Test
        @DisplayName("should return Unicode icons when terminal supports UTF-8")
        void shouldReturnUnicodeWhenTerminalSupportsUtf8() {
            Terminal mockTerminal = mock(Terminal.class);
            when(mockTerminal.encoding()).thenReturn(StandardCharsets.UTF_8);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Jul 15 09:35:08 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

            } else {
                writer.accept(CLIReportingUtils.showVersion());
            }
        }
    
        protected String describe(Terminal terminal) {
            if (terminal == null) {
                return null;
            }
            if (terminal instanceof FastTerminal ft) {
                terminal = ft.getTerminal();
            }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Oct 28 13:01:07 GMT 2025
    - 43.2K bytes
    - Click Count (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/UpgradeContext.java

         */
        public void success(String message) {
            logger.info(getCurrentIndent() + ConsoleIcon.SUCCESS.getIcon(terminal) + " " + message);
        }
    
        /**
         * Logs an error with an X icon.
         */
        public void failure(String message) {
            logger.error(getCurrentIndent() + ConsoleIcon.ERROR.getIcon(terminal) + " " + message);
        }
    
        /**
         * Logs a warning with a warning icon.
         */
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupContext.java

    import org.apache.maven.cling.logging.Slf4jConfiguration;
    import org.apache.maven.eventspy.internal.EventSpyDispatcher;
    import org.apache.maven.logging.BuildEventListener;
    import org.jline.terminal.Terminal;
    import org.slf4j.ILoggerFactory;
    
    import static java.util.Objects.requireNonNull;
    
    @SuppressWarnings("VisibilityModifier")
    public class LookupContext implements AutoCloseable {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jun 11 13:14:09 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Huffman.kt

        val start = (code shl shift) and 0xff
        val end = 1 shl shift
        node.children!!.fill(terminal, start, start + end)
      }
    
      private class Node {
        /** Null if terminal. */
        val children: Array<Node?>?
    
        /** Terminal nodes have a symbol. */
        val symbol: Int
    
        /** Number of bits represented in the terminal node. */
        val terminalBitCount: Int
    
        /** Construct an internal node. */
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 11K bytes
    - Click Count (0)
  7. docs/en/docs/js/termynal.js

    /**
     * termynal.js
     * A lightweight, modern and extensible animated terminal window, using
     * async/await.
     *
     * @author Ines Montani <******@****.***>
     * @version 0.0.1
     * @license MIT
     */
    
    'use strict';
    
    /** Generate a terminal widget. */
    class Termynal {
        /**
         * Construct the widget's settings.
         * @param {(string|Node)=} container - Query selector or container element.
         * @param {Object=} options - Custom settings.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Aug 31 10:32:57 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  8. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/UpgradeContextTest.java

            assertNotNull(context.options(), "Options should be available");
    
            // Test that icon methods don't throw exceptions
            // (The actual icon choice depends on terminal charset capabilities)
            context.success("Test success message");
            context.failure("Test failure message");
            context.warning("Test warning message");
            context.detail("Test detail message");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Jul 15 09:35:08 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/ImmutableMapEntry.java

      /**
       * Returns true if this entry has no bucket links and can safely be reused as a terminal entry in
       * a bucket in another map.
       */
      boolean isReusable() {
        return true;
      }
    
      static class NonTerminalImmutableMapEntry<K, V> extends ImmutableMapEntry<K, V> {
        /*
         * Yes, we sometimes set nextInKeyBucket to null, even for this "non-terminal" entry. We don't
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 01 21:42:29 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/utils/CLIReportingUtils.java

            if (commandLine != null) {
                version.append(ls).append("Command line: ").append(commandLine);
            }
            if (terminal != null) {
                version.append(ls).append("Terminal: ").append(terminal);
            }
            return version.toString();
        }
    
        public static String showVersionMinimal() {
            Properties properties = getBuildProperties();
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Mar 10 15:37:54 GMT 2026
    - 6.9K bytes
    - Click Count (0)
Back to Top