You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AnsiColor Plugin for Jenkins uses jansi / AnsiOutputStream to transform ANSI escape sequences into HTML output formatting for displaying build logs on the Jenkins web interface.
When running the command export TERM=xterm ; echo "$(tput setaf 3)highlight $(tput sgr0)normal" in an AnsiColor enabled build, output is filtered by AnsiOutputStream to:
highlight (Bnormal
(B is part of tput sgr0 output:
^[(B^[[m
This was reproduced even when increasing the jansi dependency to 1.11 (from 1.5) and removing all non-essential implementation from the AnsiOutputStream subclass.
Some terminals (xterm) supports two different 'character sets' ('G0' and
'G1'), which can be switched with 'SI' (shift in, '\017') and 'SO'
(shift out, '\016'). Each character set can be configured separately
and can be chosen from a list of pre-defined sets like 'ASCII Set' and
'Special Graphics'.
Running `TERM=xterm tput sgr0` to reset the terminal returns an escape
sequence starting with 'ESC ( 0', which selects the 'ASCII Set' for
'G0'. This currently is not understood by the Jenkins AnsiColor plugin.
Filter out those sequences, as they otherwise clutter the output.
<https://www.in-ulm.de/~mascheck/various/alternate_charset/> has a nice
description for characters sets
This is issue <fusesource#29>, a
upstream port of <https://issues.jenkins-ci.org/browse/JENKINS-24387>
The AnsiColor Plugin for Jenkins uses jansi /
AnsiOutputStream
to transform ANSI escape sequences into HTML output formatting for displaying build logs on the Jenkins web interface.When running the command
export TERM=xterm ; echo "$(tput setaf 3)highlight $(tput sgr0)normal"
in an AnsiColor enabled build, output is filtered byAnsiOutputStream
to:(B
is part oftput sgr0
output:This was reproduced even when increasing the jansi dependency to 1.11 (from 1.5) and removing all non-essential implementation from the
AnsiOutputStream
subclass.Downstream issue: JENKINS-24387.
The text was updated successfully, but these errors were encountered: