Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for isColorEnabled (0.08 sec)

  1. compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

            assumeTrue(MessageUtils.isColorEnabled(), "ANSI not supported");
            CliRequest request;
    
            MessageUtils.setColorEnabled(true);
            request = new CliRequest(new String[] {"-B"}, null);
            cli.cli(request);
            cli.properties(request);
            cli.logging(request);
            assertFalse(MessageUtils.isColorEnabled());
    
            MessageUtils.setColorEnabled(true);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/MessageBuilderFactory.java

    @Experimental
    public interface MessageBuilderFactory extends Service {
        /**
         * Checks if the underlying output does support styling or not.
         * @return whether color styling is supported or not
         */
        boolean isColorEnabled();
    
        /**
         * Returns the terminal width or <code>-1</code> if not supported.
         * @return the terminal width
         */
        int getTerminalWidth();
    
        /**
         * Creates a new message builder.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Mon Jan 08 10:37:09 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

            }
            if (context.invokerRequest.options().verbose().orElse(false)) {
                logger.debug("Message scheme: " + (MessageUtils.isColorEnabled() ? "color" : "plain"));
                if (MessageUtils.isColorEnabled()) {
                    MessageBuilder buff = MessageUtils.builder();
                    buff.a("Message styles: ");
                    buff.trace("trace").a(' ');
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/main/java/org/fusesource/jansi/Ansi.java

        }
    
        @FunctionalInterface
        public interface Consumer {
            void apply(Ansi ansi);
        }
    
        public static boolean isEnabled() {
            return org.apache.maven.jline.MessageUtils.isColorEnabled() && org.jline.jansi.Ansi.isEnabled();
        }
    
        public static void setEnabled(final boolean flag) {
            org.jline.jansi.Ansi.setEnabled(flag);
        }
    
        public static Ansi ansi() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

            }
    
            if (slf4jLogger.isDebugEnabled()) {
                slf4jLogger.debug("Message scheme: {}", (MessageUtils.isColorEnabled() ? "color" : "plain"));
                if (MessageUtils.isColorEnabled()) {
                    MessageBuilder buff = MessageUtils.builder();
                    buff.a("Message styles: ");
                    buff.trace("trace").a(' ');
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
Back to top