Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASCII colors in job output are not displayed #3166

Closed
wilfriedroset opened this issue Aug 8, 2018 · 3 comments
Closed

ASCII colors in job output are not displayed #3166

wilfriedroset opened this issue Aug 8, 2018 · 3 comments
Assignees

Comments

@wilfriedroset
Copy link

Looks like CDS doesn't display colored text when displaying jobs output.
My job looks like this

NC='\033[0m' # No Color
RED='\033[0;31m'
GREEN='\033[0;32m'
echo -e "${GREEN}OK${NC}"

The output display correctly OK but the green color aren't displayed.

@maxatome
Copy link
Member

Output is HTML at the time of writing. So you can write HTML font tags as a workaround, or pipe your output to a script that does that for you.

What would be useful, is to have the choice of the output format for each step between raw, ANSI or HTML for example.

@bnjjj bnjjj added the api label Nov 8, 2018
@bnjjj bnjjj self-assigned this Nov 8, 2018
@bnjjj
Copy link
Contributor

bnjjj commented Nov 8, 2018

Ability to add option on step to tell what kind of format the logs are. In that case when in UI we display logs, we know the preferred format et so adapt our display

bnjjj added a commit that referenced this issue Nov 12, 2018
bnjjj added a commit that referenced this issue Nov 12, 2018
bnjjj added a commit that referenced this issue Nov 12, 2018
bnjjj added a commit that referenced this issue Nov 12, 2018
bnjjj added a commit that referenced this issue Nov 12, 2018
bnjjj added a commit that referenced this issue Nov 12, 2018
bnjjj added a commit that referenced this issue Nov 13, 2018
@yesnault
Copy link
Member

yesnault commented Nov 23, 2018

closed about display ascii.

@maxatome #3643 created for your request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants