• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • ansicolor-plugin
    • None

      tput is a utility frequently used to set the terminal colors (if TERM is set to xterm).

      echo "$(tput setaf 3)highlight $(tput sgr0)normal"

      ansicolor works as expected here, too, however, when using $(tput sgr0) to reset the font properties, ansicolor leaves a "(B" visible.

      So the output when using ansicolor looks like:
      highlight normal(B

      I assume that's a part of the control sequence that ansicolor doesn't yet know about.

          [JENKINS-24387] Support parsing output of $(tput sgr0)

          Nikolaj Schumacher created issue -

          Daniel Beck added a comment -

          Full output of the command is ^[(B^[[m

          Daniel Beck added a comment - Full output of the command is ^[(B^[[m

          Daniel Beck added a comment -

          Filed with the jansi project as https://github.com/fusesource/jansi/issues/29

          Daniel Beck added a comment - Filed with the jansi project as https://github.com/fusesource/jansi/issues/29

          FYI this now appears to be fixed

          Adrian Bridgett added a comment - FYI this now appears to be fixed
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 157309 ] New: JNJira + In-Review [ 179564 ]

          Philipp Hahn added a comment -

          I still see (B with Jenkins ver. 2.46.2 and AnsiColor Plugin 0.5.0 on Linux with TERM=xterm using pipeline workflows

          Philipp Hahn added a comment - I still see (B with Jenkins ver. 2.46.2 and AnsiColor Plugin 0.5.0 on Linux with TERM=xterm using pipeline workflows
          Philipp Hahn made changes -

          Daniel Beck added a comment -

          pmhahn To clarify, it's not an issue with jANSI, but with the Jenkins plugin? Or did you just choose to fix it there?

          Daniel Beck added a comment - pmhahn To clarify, it's not an issue with jANSI, but with the Jenkins plugin? Or did you just choose to fix it there?

          Philipp Hahn added a comment -

          danielbeck: I don't know jANSI; I guesst its some ANSI escape sequence library for Java.

          I fixed the "bug" in the "AnsiColor Plugin". See me Pull Request 111with patch and test. That removes the (B in output.

          Philipp Hahn added a comment - danielbeck : I don't know jANSI; I guesst its some ANSI escape sequence library for Java. I fixed the "bug" in the "AnsiColor Plugin". See me Pull Request 111 with patch and test. That removes the (B in output.

          Daniel Beck added a comment -

          pmhahn Right, forgot this was just copied over, PR discussion explains what I was referring to.

          Daniel Beck added a comment - pmhahn Right, forgot this was just copied over, PR discussion explains what I was referring to.

            Unassigned Unassigned
            nschum Nikolaj Schumacher
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: