support the terminal's "default" color in tog color schemes
diff --git a/tog/tog.1 b/tog/tog.1
index 00abe0b..01154b7 100644
--- a/tog/tog.1
+++ b/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
diff --git a/tog/tog.c b/tog/tog.c
index dda9e5d..c01e870 100644
--- a/tog/tog.c
+++ b/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);
}