Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-24387

Support parsing output of $(tput sgr0)

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          vladichko Vlad Aginsky added a comment -

          raised to major, hopefully to get attention. 

          Show
          vladichko Vlad Aginsky added a comment - raised to major, hopefully to get attention. 
          Hide
          docwhat Christian Höltje added a comment -

          Hmm... My issue may be JENKINS-34019 instead. [0m (setaf 0) is not the same as [m (setgr0).

          Show
          docwhat Christian Höltje added a comment - Hmm... My issue may be JENKINS-34019 instead. [0m ( setaf 0 ) is not the same as [m ( setgr0 ).
          Hide
          docwhat Christian Höltje added a comment - - edited

          Since adding PR #132 this issue now becomes very important because each line isn't reset.

          Now colors are bleeding into other lines.

          A good example is Cucumber, where text that was previously default/reset becomes red after an error. You can see [0m in the output of the error message.

          Show
          docwhat Christian Höltje added a comment - - edited Since adding PR #132 this issue now becomes very important because each line isn't reset. Now colors are bleeding into other lines. A good example is Cucumber, where text that was previously default/reset becomes red after an error. You can see [0m in the output of the error message.
          Hide
          danielbeck Daniel Beck added a comment -

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

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

          Daniel Beck: 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.

          Show
          pmhahn Philipp Hahn added a comment - Daniel Beck : 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.

            People

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

              Dates

              Created:
              Updated: