From 35727d4ac3e788fd193c3751659c5e54d795fece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Henry?= Date: Wed, 27 Feb 2019 02:36:06 +0100 Subject: [PATCH] Clic: stop being colorless. Writing keyword in `white` was a bad idea for people using a black-on-white terminal... This patch replace `white` by the default color for keywords (it preserves the underline). This does not change the color for white-on-block terminal (where `white` is the default color), but fix the issue for all terminals with a clear background --- src/lib_clic/clic.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib_clic/clic.ml b/src/lib_clic/clic.ml index 15e834f84..e9ee31d49 100644 --- a/src/lib_clic/clic.ml +++ b/src/lib_clic/clic.ml @@ -404,7 +404,7 @@ let setup_formatter ppf format verbosity = | "commanddoc" -> Format.fprintf ppf " @[" | "opt" -> push_ansi_format (Some `Green, None, false, false) | "arg" -> push_ansi_format (Some `Yellow, None, false, false) ; Format.fprintf ppf "<" - | "kwd" -> push_ansi_format (Some `White, None, false, true) + | "kwd" -> push_ansi_format (None, None, false, true) | "error" -> push_ansi_format (Some `Red, None, true, true) | "warning" -> push_ansi_format (Some `Yellow, None, true, true) | "hilight" -> push_ansi_format (Some `White, Some `Yellow, true, true)