difftastic icon indicating copy to clipboard operation
difftastic copied to clipboard

Colours aren't shown in ansi-term in Emacs

Open Wilfred opened this issue 2 years ago • 3 comments

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).

Wilfred avatar Mar 23 '22 07:03 Wilfred

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.

image

cannero avatar May 18 '22 19:05 cannero

Yeah, colours look correct in eshell now, although some are missing in ansi-term still.

Wilfred avatar May 24 '22 06:05 Wilfred

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).

rmburg avatar Jan 21 '24 15:01 rmburg