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

Support parsing output of $(tput sgr0)


    • 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.

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