about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdam Procio <adam.procio@gmail.com>2024-10-25 22:35:09 +0200
committerLeah Neukirchen <leah@vuxu.org>2024-10-26 17:08:13 +0200
commit244e661fbca7bf0c9d7e91d3bf5e569adff95a89 (patch)
tree2588e50bde18386ace9a047554e2493ea1bb764a
parentc087993f56d1424ff14897c87ef044662a9df294 (diff)
downloadmblaze-244e661fbca7bf0c9d7e91d3bf5e569adff95a89.tar.gz
mblaze-244e661fbca7bf0c9d7e91d3bf5e569adff95a89.tar.xz
mblaze-244e661fbca7bf0c9d7e91d3bf5e569adff95a89.zip
mblaze.7: document configuring terminal colors
Closes #267.

Co-authored-by: Adam Procio <adam.procio@gmail.com>
-rw-r--r--man/mblaze.738
1 files changed, 38 insertions, 0 deletions
diff --git a/man/mblaze.7 b/man/mblaze.7
index da2aebf..e659665 100644
--- a/man/mblaze.7
+++ b/man/mblaze.7
@@ -197,6 +197,44 @@ For scripting, you must make these arguments explicit.
 .Pp
 For configuration, see
 .Xr mblaze-profile 5 .
+.Sh COLORS
+.Nm
+color output of
+.Xr mshow 1
+and
+.Xr mscan 1
+can be configured via environment variables starting with MCOLOR_. For example:
+.Dl export MCOLOR_FROM=226
+.Pp
+will turn the color of From= header line to bright yellow.
+.Pp
+All programmable colors:
+.Bl -tag -width 15n -compact
+.It Ev MCOLOR_CUR
+current message in mless
+.It Ev MCOLOR_DIFF_D
+diff deleted lines
+.It Ev MCOLOR_DIFF_I
+diff inserted lines
+.It Ev MCOLOR_DIFF_R
+diff line range
+.It Ev MCOLOR_FOOTER
+footer
+.It Ev MCOLOR_FROM
+from header line
+.It Ev MCOLOR_HEADER
+rest of header
+.It Ev MCOLOR_QUOTE
+quote
+.It Ev MCOLOR_QQUOTE
+double-nested quote
+.It Ev MCOLOR_QQQUOTE
+triple-nested quote
+.It Ev MCOLOR_SEP
+message separator
+.It Ev MCOLOR_SIG
+message signature
+.El
 .Sh SEE ALSO
 .Xr mailx 1 ,
 .Xr mblaze-profile 5 ,