difftastic
difftastic copied to clipboard
Colours aren't shown in ansi-term in Emacs
Bold works fine, inspecting it shows:
There are text properties here:
font-lock-face ((:foreground "#eeeeec" :background "#2e3434" :inverse-video nil) :inherit term-bold)
fontified t
but no colours are shown for the output, even if using --color=always
. Strangely cargo output colours are fine.
Could experiment with inspect TERM (looking for e.g. xtern-256color or eterm-color) but that doesn't help if always
doesn't work.
Note that eshell gets bold and also italics, but no colour (even in cargo messages).
Made a short test, with --color=always
it works for eshell for difftastic and cargo on windows with emacs 29. Without the color option I also don't get colors.
Yeah, colours look correct in eshell now, although some are missing in ansi-term still.
Probably related: If I have difftastic configured as my default difftool in git like this:
[diff]
external = difft
Then, diffs displayed by paru (which uses git's configured diff) are also missing colors (making them almost entirely useless).