Commit Diff


commit - c0b01bdba6cf6e38ce3c78e54b397879062189e4
commit + 1d7fe5cdae04f3c0e387ffdbd0f0dabe89871351
blob - 00abe0be76b15bb3346df9abc1eaa79eed852df8
blob + 01154b78ef52de6654743418f9d5af0186eb93ec
--- tog/tog.1
+++ tog/tog.1
@@ -310,8 +310,10 @@ The colors available in color schemes are
 .Dq yellow ,
 .Dq blue ,
 .Dq megenta ,
+.Dq cyan ,
 and
-.Dq cyan .
+.Dq default
+which maps to the terminal's default foreground color.
 .It Ev TOG_COLOR_DIFF_MINUS
 The color used to mark up removed lines in diffs.
 If not set, the default value
blob - dda9e5d61b41f6285570e0d23fec689fd011de49
blob + c01e8707b2d79efb636d884e8954c2781bd15e6a
--- tog/tog.c
+++ tog/tog.c
@@ -2817,6 +2817,8 @@ get_color_value(const char *envvar)
 		return COLOR_CYAN;
 	if (strcasecmp(val, "white") == 0)
 		return COLOR_WHITE;
+	if (strcasecmp(val, "default") == 0)
+		return -1;
 
 	return default_color_value(envvar);
 }