Alternative forms that work
You can use
diff to do the generation of differences and then pipe the output to
$ echo "123" | diff -u <(echo "123") - | colordiff
I found this in daveewart's fork/branch of
colordiff, available here on github. There are a fairly large number of other forms that you can call
colordiff, perhaps one of those would suit your needs.