From 5ad8b1bb31ce6e9d8b06b67845a2b194cd9478bf Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Tue, 30 Jul 2024 14:56:25 -0700 Subject: [PATCH] Document the usage of bright colours and Solarized See #745 and #611 --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 8621664086..4c34fc2463 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,15 @@ $ difft --check-only --exit-code before.js after.js This will set the exit code to 0 if there are no syntactic changes, or 1 if there are changes found. +### Why aren't colours appearing in my terminal? + +Difftastic uses ANSI bright colours by default, but some terminal +themes show bright colours as grey. Solarized is a popular theme that +does this. + +If you're a Solarized user, use `export DFT_BACKGROUND=light` to +disable bright colours, or try a different terminal colour scheme. + ### How does it work? Difftastic treats structural diffing as a graph problem, and uses