Preserve color output
haampie opened this issue · 1 comments
haampie commented
It would be great if sarus could preserve color output when running e.g. sarus run [image] ctest
. Docker seems to do this as well.
mwe:
docker run --rm ubuntu:18.04 ls --color=auto
sarus run ubuntu:18.04 ls --color=auto
FWIW, it seems that TERM
is fine inside of the container
$ sarus run ubuntu:18.04 echo $TERM
xterm-256color
haampie commented
Figured it out, sarus run --tty ubuntu:18.04 ls --color=auto
sets terminal: true
in config.json
, which is enough to get color output.