summaryrefslogtreecommitdiff
path: root/web/src/containers/build/Console.jsx
diff options
context:
space:
mode:
authorSorin Sbarnea <ssbarnea@redhat.com>2020-03-31 12:25:05 +0100
committerSorin Sbarnea <ssbarnea@redhat.com>2020-11-03 15:24:04 +0000
commit896dac877a521490f50264d39516e4fc0990fbcf (patch)
treedd32f6751d2d7c85f3e4e67545ca7c2db6e8a94e /web/src/containers/build/Console.jsx
parent38f0c32cfb57e9228283a0e2fe86520d4a5558c7 (diff)
downloadzuul-896dac877a521490f50264d39516e4fc0990fbcf.tar.gz
Enable ANSI rendering via react-ansi
Enables ANSI rendering using react-ansi, which emulates a terminal and also gives line numbering for free, even being able to colorize output from some other commands. Easy to test using build b4655eb004d143379d424fd968c2e196 https://sbarnea.com/ss/Screen-Shot-2020-08-25-16-23-03.45.png Change-Id: If65641216e43865735cee6e8fb932c41c0cb5f21
Diffstat (limited to 'web/src/containers/build/Console.jsx')
-rw-r--r--web/src/containers/build/Console.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/src/containers/build/Console.jsx b/web/src/containers/build/Console.jsx
index 0e6c06f8e..69357a54f 100644
--- a/web/src/containers/build/Console.jsx
+++ b/web/src/containers/build/Console.jsx
@@ -15,6 +15,7 @@
import * as moment from 'moment'
import 'moment-duration-format'
import * as React from 'react'
+import ReactAnsi from 'react-ansi'
import PropTypes from 'prop-types'
import ReactJson from 'react-json-view'
import {
@@ -91,7 +92,7 @@ class TaskOutput extends React.Component {
} else if (typeof(value) === 'string') {
ret = (
<pre>
- {value}
+ <ReactAnsi log={value}/>
</pre>
)
} else if (typeof(value) === 'object') {