Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for INTENSITY_BOLD (0.18 sec)

  1. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/DefaultColorMapTest.groovy

            color = map.getColourFor(Style.Error)
            color.on(ansi)
    
            then: 'Both properties are applied'
            1 * ansi.fg(Color.RED)
            1 * ansi.a(Attribute.INTENSITY_BOLD)
    
            when: 'That style is disabled'
            color.off(ansi)
    
            then: 'Both properties are suppressed'
            1 * ansi.fg(Color.DEFAULT)
            1 * ansi.a(Attribute.RESET)
        }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/rich/RichConsoleBasicGroupedTaskLoggingFunctionalTest.groovy

        private final StyledOutput failingTask = styled(Ansi.Color.RED, Ansi.Attribute.INTENSITY_BOLD).text("> Task :failing").styled(null).text(" FAILED").off()
        private final StyledOutput succeedingTask = styled(Ansi.Attribute.INTENSITY_BOLD).text("> Task :succeeding").off()
        private final StyledOutput configuringProject = styled(Ansi.Color.RED, Ansi.Attribute.INTENSITY_BOLD).text("> Configure project :").off()
    
        @Issue("gradle/gradle#2038")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/AbstractConsoleBuildResultFunctionalTest.groovy

        protected final StyledOutput buildFailed = styled(Ansi.Color.RED, Ansi.Attribute.INTENSITY_BOLD).text('BUILD FAILED').off()
        protected final StyledOutput buildSuccessful = styled(Ansi.Color.GREEN, Ansi.Attribute.INTENSITY_BOLD).text('BUILD SUCCESSFUL').off()
    
        def "outcome for successful build is logged with appropriate styling"() {
            given:
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  4. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/TestColorMap.groovy

    import org.gradle.internal.logging.text.Style
    import org.gradle.internal.logging.text.StyledTextOutput
    
    class TestColorMap implements ColorMap {
        def Ansi.Attribute statusBarOn = Ansi.Attribute.INTENSITY_BOLD
        def Ansi.Attribute statusBarOff = Ansi.Attribute.RESET
    
        ColorMap.Color getStatusBarColor() {
            if (statusBarOn == Ansi.Attribute.RESET) {
                return {} as ColorMap.Color
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/DefaultRedrawableLabelTest.groovy

            given:
            label.text = new StyledTextOutputEvent.Span(StyledTextOutput.Style.Header, "text")
    
            when:
            redraw()
    
            then:
            1 * ansi.a(Ansi.Attribute.INTENSITY_BOLD)
            1 * ansi.a('text')
            1 * ansi.a(Ansi.Attribute.RESET)
            0 * ansi._
        }
    
        def "setting styled text (color only) to the label will change the style and write the text to ansi"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/console/AbstractConsoleGroupedTaskFunctionalTest.groovy

            private final Ansi.Attribute attribute
    
            private StyledOutput(StyledOutput previous, Ansi.Color color, Ansi.Attribute attribute) {
                if (attribute != Ansi.Attribute.INTENSITY_BOLD && attribute != null) {
                    throw new UnsupportedOperationException()
                }
                this.color = color
                this.attribute = attribute
                def previousColor = null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. maven-embedder/src/main/java/org/fusesource/jansi/Ansi.java

         * (Select Graphic Rendition) parameters</a>.
         */
        public enum Attribute {
            RESET(0, "RESET"),
            INTENSITY_BOLD(1, "INTENSITY_BOLD"),
            INTENSITY_FAINT(2, "INTENSITY_FAINT"),
            ITALIC(3, "ITALIC_ON"),
            UNDERLINE(4, "UNDERLINE_ON"),
            BLINK_SLOW(5, "BLINK_SLOW"),
            BLINK_FAST(6, "BLINK_FAST"),
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon May 13 09:53:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/DefaultColorMap.java

            return noDecoration;
        }
    
        private static Color newBoldColor() {
            // We don't use Attribute.INTENSITY_BOLD_OFF as it's rarely supported like Windows 10
            return new AttributeColor(Attribute.INTENSITY_BOLD, Attribute.RESET);
        }
    
        private static Color newReverseColor() {
            return new AttributeColor(Attribute.NEGATIVE_ON, Attribute.NEGATIVE_OFF);
        }
    
        private static Color newItalicColor() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top